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

Firefox + native evnets: /tmp/switch_window_started prevents parallel execution #1326

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

Comments

@lukeis
Copy link
Member

lukeis commented Mar 2, 2016

Originally reported on Google Code with ID 1326

The switch_window_started file used by the Firefox driver prevents usage of native events
for parallel execution on a single machine.


Reported by jari.bakken on 2011-02-22 14:37:38

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

The solution I plan on implementing:
* Add get_process_id() to native_events library.
* Use the process_id in the Firefox extension to write switch_window_started.<pid>
* From the ignore_nofocus library, read file switch_window_started.<pid> (Getting the
pid from the native code is trivial).

Reported by eran.mes on 2011-02-22 15:55:01

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Andreas found a simpler solution - in-process function call.  He's working on implementing
it now.

Reported by eran.mes on 2011-09-13 15:27:52

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Will this work in the case where multiple processes are running tests using the same
display? Surely only one window at a time can have focus....

Reported by simonstewart@google.com on 2011-09-14 13:48:37

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

As far as the window manager is concerned, only one window has focus. However, none
of the  Firefox instances will realize it's lost the focus.

Reported by eran.mes on 2011-09-14 17:21:40

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Fixed in r14011.

Reported by eran.mes on 2011-10-04 10:31:31

  • Status changed: Fixed

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

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

  • 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