-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firefox browser remains minimised when Windows is locked/disconnected #872
Comments
Does a test before minimizes the window? Or is that visible when starting the first test? The latter I cannot believe because it doesn't happen in all of our cases. So is that a problem with geckodriver 0.18 and Firefox 54? Or did it start with Firefox 55? If the latter is the case could you check the beta releases and tell us which version first showed this behavior? The builds can be found here: http://archive.mozilla.org/pub/firefox/releases/. Thanks. |
Also I checked the beta releases. It works as expected with FF 54.0.1 but stops working from FF55.0b1 |
Hi @whimboo, any updates? |
Ok, if someone has the same issue and is still looking for solution. If you use WebDriver like this WebDriver webDriver = FirefoxDriver(); when if you run tests on locked/disconnected Windows virtual machine Firefox will be minimized and Firefox behavior will be as I described in previous posts. So there are 2 ways how to resolve the issue.
int widthBeforeMaximize = webDriver.manage().window().getSize().width; because in FF55 and 56 maximize() method will return the window to normal window state if the window is already maximized. It should be fixed in FF57 https://bugzilla.mozilla.org/show_bug.cgi?id=1391691 |
If this is the problem:
Then https://bugzilla.mozilla.org/show_bug.cgi?id=1391691 will have fixed this. |
This issue has been automatically locked since there has not been any recent activity after it was closed. If you have run into an issue you think is related, please open a new issue. |
Firefox Version
55.0 (32-bit)
Platform
Windows 10 version - 1703, build 15063.138
Other
geckodriver 0.18.0
Selenium WebDriver 3.4.0 (C# DotNet)
Testcase
Could be related to #703?
If I run my test cases on a Windows 10 VM via Test City, If I am not physically logged into the machine, then Firefox is started minimised (even though I have the code
driver.Manage().Window.Maximize();
If I log in part way through the tests then I can see that FF is open but in minimise mode. The only way I can bring the browser up is by having to go to the Firefox process in Task Manager, right-click and select "Maximise"
As a consequence all tests fail with a Timeout exception
If I am logged in then FF browser is maximised.
This was not an issue with FF v54 and geckodriver 0.16.0
Stacktrace
N/A
Trace-level log
When I can figure out how to change the logging level in C# from Debug....
The text was updated successfully, but these errors were encountered: