can tell me eclipse code launching selenium ide automatically @ run time in firefox. (while running, new instance of browser created no selenium ide or plugins present there).
here code using not working. please me out.
firefoxprofile firefoxprofile=null; try {
file file = new file("c:\\users\\user\\workspace\\seleniumdb\\selenium-ide-2.9.0.xpi"); firefoxprofile = new firefoxprofile(); firefoxprofile.addextension(file); } catch (ioexception e) { e.printstacktrace(); } desiredcapabilities capabilities = desiredcapabilities.firefox(); capabilities.setcapability(firefoxdriver.profile, firefoxprofile); webdriver driver = null; try { driver = new remotewebdriver(new url("http://localhost:4444/wd/hub"), capabilities); } catch (malformedurlexception e) { e.printstacktrace(); } thanks
first of all, install required plugins in firefox.
then, launch firefox.exe -p key.
create profile.
use profile instantiate webdriver instance.
when launched, plugins settings there.
Comments
Post a Comment