Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1946)

Issue 5163044: Test failing for firefox with native events

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 7 months ago by ahaas
Modified:
12 years, 7 months ago
Reviewers:
Eran
CC:
webdriver-eng_google.com
Visibility:
Public.

Description

The test fails because bot.dom.getInViewLocation, which is used in mouseMove, returns frame coordinates. The mouse location after mouseMove is then not stored in Window coordinates, which let the mouse click afterwards miss the intended button. The test can be fixed by calculating from frame coordinates to window coordinates. In chrome it works at the moment because it does not use bot.dom.getInViewLocation when the current frame is not the top frame.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -0 lines) Patch
M java/client/test/org/openqa/selenium/FrameSwitchingTest.java View 2 chunks +19 lines, -0 lines 0 comments Download

Messages

Total messages: 1
ahaas
12 years, 7 months ago (2011-09-30 16:08:42 UTC) #1
A good first fix would be not to use the atom bot.dom.getInViewLocation when the
current frame is not the top frame. This fix works good in Chrome I would say. I
cannot commit a CL because the CL http://codereview.appspot.com/5124048/ is not
committed yet.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b