Closed Bug 1293640 Opened 8 years ago Closed 7 years ago

Using MarionetteDriver driver.window.manage.setPosition() is not working

Categories

(Remote Protocol :: Marionette, defect)

48 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: u577193, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; Touch; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; Tablet PC 2.0; InfoPath.3; rv:11.0) like Gecko

Steps to reproduce:

I instanciated a MarionetteDriver instance and called driver().window().manage().setPosition(new Point(100,100)).


Actual results:

Nothing!


Expected results:

With FirefoxDriver on Firefox 47, the browser window was moved to position 100, 100 on the actual screen.
Setting the window position is supported in Marionette, but it might not be working correctly through geckodriver and Selenium because the WebDriver wire protocol is different to that of Selenium.

Can you please include the verbose output, using the -vv command-line flag, of geckodriver?
Hi Andreas,

thanks for catching up. Actually the geckodriver is started by the MarionetteDriver instance. To be honest, I'm not quite sure how to pass the -vv command-line flags to geckodriver during Selenium script execution.

Do I need to pass it as capability to MarionetteDriver?

Thanks and regards
mgavilan
magvilan: Right, so it doesn’t look like there’s a way to set that in Selenium without modifying the source code: https://github.com/SeleniumHQ/selenium/blob/master/java/client/src/org/openqa/selenium/firefox/GeckoDriverService.java#L98

If you have some spare time on your hands, it seems worthwhile to write a patch for Selenium that adds new function to the builder to enable verbosity, so it can be enabled here, maybe through a Java VM property or something like that: https://github.com/SeleniumHQ/selenium/blob/master/java/client/src/org/openqa/selenium/firefox/MarionetteDriver.java#L87
I am assigning a component to this issue in order to involve the development team and get an opinion on this.
Component: Untriaged → Marionette
Product: Firefox → Testing
Any progress on this issue?
Closing this as no reproducible steps have been added since I requested it a few months ago.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.