Opera opening in fullscreen, other browsers do not.

39 views
Skip to first unread message

Badaboom 55

unread,
Oct 24, 2013, 7:34:16 PM10/24/13
to seleniu...@googlegroups.com
Hello all,

I'm a designer trying to do some testing with Selenium WebDriver and Java on OSX, so I'm quite the novice.
I've inherited a project and I haven't written any of the code, so I'm trying to troubleshoot a problem I'm seeing.

Basically, when I run the test using the Opera browser, the browser launches in native "Presentation view (SHIFT+COMMAND+F)". However, when I run the same code using Firefox or Chrome, the browser window launches as expected, at some default dimension. Launching in "Presentation view" is problematic because it causes different CSS breakpoints to apply to the web page.

I've tried several things to try and dismiss "Presentation View" when using Opera, but none have worked.

I tried sending an ESCAPE key, and the SHIFT+COMMAND+F, but apparently OSX doesn't support native key events, so the browser never sees ESCAPE like it would from a native event (https://code.google.com/p/selenium/issues/detail?id=3101).

Anyway, so now I'm trying to hunt through the places in my code that are Opera-specific, and I don't see any code that would cause Opera to go into "Presentation view", but not Chrome or Firefox.

If someone wanted to use WebDriver to put Opera into Presentation View, any guesses how they would do it (maybe I can search for that method)?

Could this be a default implementation of OperaDriver?

Any help would be much appreciated!

Lukus

unread,
Jan 8, 2014, 2:17:22 PM1/8/14
to seleniu...@googlegroups.com
I'm getting the same result as I upgrade the selenium webdriver version I am using, whereas it did not do this before.  I was using selenium 2.21 and 2.25, and now upgrading to 2.38 I see this issue.  Have you tried Robot in Java to send keystrokes?  I have not yet but will if I don't find another resolution.  Will post back if I do.

Lukus

unread,
Jan 8, 2014, 6:20:01 PM1/8/14
to seleniu...@googlegroups.com
Found a mention here: https://github.com/mozilla/persona/issues/3192

But no fix suggested... bummer.

I tried using Robot to press ESC and it works for me, FYI.
Reply all
Reply to author
Forward
0 new messages