How to test that elements have been moved down on 120 pixels? Help! Help!

View: New views
2 Messages — Rating Filter:   Alert me  

How to test that elements have been moved down on 120 pixels? Help! Help!

by kiran-18 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Guys, please help me!

I have to compare two pages. The new page is the same as the old page, but all elements are moved down on 120 pixels . How to test that each element on the new page is exactly moved down on 120 pixels?
Thank you very much for your response!
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=12590&messageID=39881#39881

---------------------------------------------------------------------
To unsubscribe, e-mail: selenium-ide-dev-unsubscribe@...
For additional commands, e-mail: selenium-ide-dev-help@...


Re: How to test that elements have been moved down on 120 pixels? Help! H

by kiran-18 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I wouldn't perform the check for "all" elements. Find one element which either anchors the others or is representative, and compare the position of that element.

One approach would be to *storeElementPositionTop* for the element on the "before" page, *storeElementPositionTop* again for the "after" page, then use *verifyEval* to assert that the second value is equal to or greater than the first + 120.


Haw-Bin
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=12590&messageID=40312#40312

---------------------------------------------------------------------
To unsubscribe, e-mail: selenium-ide-dev-unsubscribe@...
For additional commands, e-mail: selenium-ide-dev-help@...