Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

There is no native way to move, resize or manipulate with browser window. #1750

Closed
lukeis opened this issue Mar 2, 2016 · 3 comments
Closed

Comments

@lukeis
Copy link
Member

lukeis commented Mar 2, 2016

Originally reported on Google Code with ID 1750

Some web applications should run in maximized window mode but unfortunatley Selenium
is not providing any browser window manipulation.  
Of course this can be achieved by using java script like :
((JavascriptExecutor)driver).executeScript("window.moveTo(0,0);window.resizeTo(screen.width,screen.height);");
But this is not the way to go, the spirit of Selenium is to use native OS window manipulations.


Reported by braimanm on 2011-06-03 14:18:37

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

I implemented window manipulation by myself using JNA and Win32 API but unfortunately
I don’t know how to implement the same functionality for Linux. If you want I can share
my code.  (There is no way to get browser window real handler in Selenium so I’m searching
for browser window by window title)

Reported by braimanm on 2011-06-03 14:37:22

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Reported by dawagner on 2011-06-05 13:21:23

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Reported by luke.semerau on 2015-09-17 18:12:53

  • Labels added: Restrict-AddIssueComment-Commit

@lukeis lukeis closed this as completed Mar 2, 2016
@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant