Closed Bug 1216949 Opened 9 years ago Closed 7 years ago

Some interactions are not effective unless Firefox window is in focus

Categories

(Remote Protocol :: Marionette, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1398111

People

(Reporter: davehunt, Unassigned)

Details

This has been an issue in the past with Selenium and FirefoxDriver, however it is also reproducible in Marionette. Some interactions such as click appear to be queued until the Firefox window has focus. Here's a Python script using the marionette-driver package that reproduces this as seen on the mozilla.org site: from marionette_driver.marionette import Marionette from marionette_driver import By from marionette_driver import Wait from marionette_driver import expected driver = Marionette(bin='/Applications/Firefox.app/Contents/MacOS/firefox-bin') driver.start_session() wait = Wait(driver, timeout=10) driver.navigate('https://www.mozilla.org/en-US/contribute/') form = driver.find_element(By.ID, 'form-details') assert not form.is_displayed() driver.find_element(By.ID, 'id_email').click() wait.until(expected.element_displayed(form)) Note that you will need to bring another window in front of Firefox after it's launched. Marionette appears to bring the window into focus by default, however when launched via Selenium and Wires the window defaults to the background.
Note I don't think it's a click being queued here, but a focus event instead. See here for the relevant Js on the page: https://github.com/mozilla/bedrock/blob/master/media/js/newsletter/form.js#L23
Priority: -- → P3
This is basically bug 1398111.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.