I am new to Selenium webdriver,so don't know how to proceed on a requirement. Requirement states :
Click on script option in the firebug, select note.js and search for window.close.
Right click on window.close and select set Breakpoint option. (This ensures the pop up does not get closed once we save the note)
Is it possible if we can accomplish the above tasks by using selenium webdriver. (I am using Java for script writing)
Thanks in advance.
You can create your profile in code and dynamically add required add-ons. Let's assume that you saved Firebug XPI into the C:\\FF_Profile folder as firebug.xpi ( go to Firebug download page , right-click on the "Add To Firefox" and save as C:\\FF_Profile\\firebug.xpi).
In code:
final String firebugPath = "C:\\FF_Profile\\firebug.xpi";
FirefoxProfile profile = new FirefoxProfile();
profile.addExtension(new File(firebugPath));
// Add more if needed
WebDriver driver = new FirefoxDriver(profile);
This is described in WebDriver FAQ
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.