I use Webdriver remotely with firefox.
I want to open my browser on full screen. The browser is opened on full screen, but immediately minimize and moves to other program which open on my OS. When I run my webdriver locally, the broser is opened on full screen, and doesn't minimize (it stays in the browser, and doesn't move to other program). I want that my browser would open on full screen, and stay in the browser, even if I run my test remottley.
The reason is that I used Java Robot, and I have to be in the browser in order that my action would be performed.
Thank you.
We can open a browser window in full screen using Selenium webdriver in C# by using the method Maximize. This method has to be applied on the webdriver object.
Use --start-fullscreen argument to Specify the browser should start in fullscreen mode, like if the user had pressed F11 right after startup. ChromeOptions options = new ChromeOptions(); options. addArguments("--start-fullscreen"); WebDriver driver = new ChromeDriver(options);
In Python, you can do something like this. Make sure you use latest Selenium package.
driver = webdriver.Firefox()
driver.maximize_window()
driver.implicitly_wait(30)
I don't know I really understood your question, but have a look at
driver.manage().window().maximize();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With