How i can verify the links position in the Web application?
Dear Friends,
I'm using Selenium+Ruby.
I have several links in my application positioned at different locations and i need to verify whether the particular link is present at the correct appropriate position (say, left or right or bottom or top).
How could i do that in script? What kind of methods/syntax i can use?
Re: How i can verify the links position in the Web application?
You can use the following code,
@mglink_topposition = $browser.get_element_position_top "link=Matching Grants"
if @mglink_topposition == '252'
puts "UI Check : Pass. MG link is present at the correct position in Story screen."
else
puts "UI Check : Fail. MG link is not present at the correct position in Story screen."
end