Open lukeis opened 8 years ago
Yes, it is the way the browsers work. Selenium does not modify this behaviour. What
part of the documentation do you think is the most appropriate to mention this fact
in?
Reported by barancev
on 2014-05-14 12:34:14
NeedsClarification
I'm not sure where the correct place in the docs is, but it should be somewhere prominent.
Maybe on that page: http://docs.seleniumhq.org/docs/03_webdriver.jsp - but if there
is some FAQ section (I do not see atm), something like "my page behaves differently
when the browser is driven by selenium than with a real user - what to do? Answer:
It might be because the browser is not focused ...".
It actually means that you have to run tests in foreground. So you cannot start your
tests and let them run while you do something other on the pc. That is very important
to know, because else you get false results.
One could also argue that selenium fills out fields that have no focus - this is impossible
for a real user, so it is not doing things as a real user. But maybe that is not the
goal of selenium (to simulate a "real user"), then this would be fine and no problem
for selenium. But it should be mentioned that if selenium is used for automated browser
tests (where the browser obviously should behave like a "real user"), the browser window
must be in foreground.
Maybe the browser could implement a feature to behave like in foreground when selenium
is driving them. Afaik selenium now uses native browser hooks to drive it? Then there
might be a chance to implement such native hook to force the browser to behave like
if it where in foreground (which could be exposed for the selenium user as a method
to manually enable it).
Reported by markus.doits
on 2014-05-15 11:11:29
Reported by barancev
on 2014-05-15 14:10:46
New
I am facing the exact same issue with my Project, is there a workaround for this?
Reported by jasleenss
on 2015-09-14 22:06:52
Reported by luke.semerau
on 2015-09-17 17:46:58
Originally reported on Google Code with ID 7346
Reported by
markus.doits
on 2014-05-14 08:12:40