GeekInterview.com
Results 1 to 2 of 2

How i can verify the links position in the Web application?

This is a discussion on How i can verify the links position in the Web application? within the Selenim forums, part of the Software Testing category; 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 ...

  1. #1
    GodwinQA is offline Contributing Member Array
    Join Date
    Feb 2010
    Answers
    54

    Question 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?

    NOTE:
    Not only the links, also text label too.

    Can anyone kindly direct me?

    ----------------------
    Thanks in advance,
    Godwin.




  2. #2
    GodwinQA is offline Contributing Member Array
    Join Date
    Feb 2010
    Answers
    54

    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

    - Godwin