How to click on Menu Bar>>Tools Menu of Mozilla Firefox using selenium Webdriver?
Asked
Active
Viewed 766 times
-1
-
1and please read [ask] – Software Engineer Jan 06 '15 at 05:02
-
Webdriver is used only for web automation. If u need to change certain values try to set preferences or capabilities of desired browser. – Vivek Singh Jan 06 '15 at 06:47
2 Answers
0
You CAN'T do something like this. You just can handle the HTML elements, events and simulate actions between your HTML and the user. Selenium works with the DOM, is used to test your web application not to interact with the browser as OS an app.

ianaya89
- 4,153
- 3
- 26
- 34
0
You can use the following code:
Robot robot = new Robot();
robot.keyPress(KeyEvent.VK_CONTROL);
robot.keyPress(KeyEvent.VK_L);
robot.keyRelease(KeyEvent.VK_L);
robot.keyRelease(KeyEvent.VK_CONTROL);
robot.keyPress(KeyEvent.VK_TAB);
robot.keyRelease(KeyEvent.VK_TAB);
robot.keyPress(KeyEvent.VK_TAB);
robot.keyRelease(KeyEvent.VK_TAB);
And then use the right arrow to move from one element to another.

Ledjon
- 105
- 8