How to set the size of browser window using selenium?
Answer / Kumar Mukesh
To set the size of the browser window using Selenium, you can use the Manage() class's window().setSize() method. Here is an example:
driver.manage().window().setSize(new Dimension(1024, 768));
| Is This Answer Correct ? | 0 Yes | 0 No |
How does click on button without using click method
How will you find an element using selenium?
What is the difference between @factory and @data provider annotation?
Is webelement an interface or a class?
How can we find the value of different attributes like name, class, the value of an element?
How to perform right click using selenium webdriver?
What is the difference between selenium and qtp?
What are the different ways of locating a web element in selenium?
How to check if a text is highlighted on the page ?
Explain how to iterate through options in test script?
When to use assert, verify and waitfor in selenium?
What kinds of tests can be run with the selenium framework?