1

I am working on function testing using selenium.

But on GUI testing I need help.

How selenium RC can help to automate the GUI testing like position of object, color, alignments of object in web pages.

Please suggest if any selenium API is available / or we need to use any plug in for this.

1 Answer 1

1

You should probably able to do the thing you mentioned. Explore Selenium API doc.

  1. Position of object:

      getElementHeight(), 
      getElementPositionLeft(), 
      getElementPositionTop(), 
      getElementWidth() 
    

  2. Element Color/alignment: You can retrieve the element's color specific attributes like color or style and check for expected value. For that you can use getAttribute() method. Also getElementIndex() might be useful.

All you have do is try to explore selenium APIs.

Hope this helps.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.