开发者

Selenium RC single window - how to maximize client frame

开发者 https://www.devze.com 2023-03-02 20:01 出处:网络
I am testing an application to test that must run in Selenium\'s single window mode. Multi window mode is not an option.

I am testing an application to test that must run in Selenium's single window mode. Multi window mode is not an option.

The problem is Selenium's frame takes a big chunk of the browser window.

How can I have the 开发者_开发知识库application frame expand to fill the browser window (and/or shrink the selenium part)?

Test code is in python.


Short of using Selenium.RunScript() to run some JavaScript code that adjusts the dimensions of each frame, you can't.


From the selenium API doc:

window_maximize(self, windowName)

Resize window to take up the entire screen

'windowName' is name of the window to be enlarged

0

精彩评论

暂无评论...
验证码 换一张
取 消