Results 1 to 2 of 2

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

  1. #1
    Contributing Member
    Join Date
    Feb 2010
    Answers
    49

    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
    Contributing Member
    Join Date
    Feb 2010
    Answers
    49

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact