Selenium GUI testing?
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, 开发者_StackOverflow社区alignments of object in web pages.
Please suggest if any selenium API is available / or we need to use any plug in for this.
You should probably able to do the thing you mentioned. Explore Selenium API doc.
Position of object:
getElementHeight(), getElementPositionLeft(), getElementPositionTop(), getElementWidth()
Element Color/alignment: You can retrieve the element's color specific attributes like
color
orstyle
and check for expected value. For that you can usegetAttribute()
method. AlsogetElementIndex()
might be useful.
All you have do is try to explore selenium APIs.
Hope this helps.
精彩评论