I am willing know if there is any way to tests GUI components in selenium. Like -
Size and position of text box,
Field Length of textbox,
Font of text......... etc. etc
Is there any library in Java which we can plug in and use with Selenium.
I think some level of GUI testing can be achieved using FEST which we can use along with Selenium.
Please share your views on this.
Regards,
Tarun K
Did you try this? It shows an interesting way of getting the properties of UI objects.
http://clearspace.openqa.org/docs/DOC-1061
-Haroon
Looks interesting. Let me check.
I found few things which I am sharing here -
Counting the number of anchors, forms, images and link in a document –
selenium.getEval("window.document.anchors.length;");
selenium.getEval("window.document.forms.length;");
selenium.getEval("window.document.images.length;");
selenium.getEval("window.document.links.length;");
This way we can tests if there are right number of anchors, forms, images and links in a page.
Finding the element position using the methods from DefaultSelenium class –
getElementHeight(java.lang.String locator)
getElementPositionLeft(java.lang.String locator)
getElementPositionTop(java.lang.String locator)
getElementWidth(java.lang.String locator)
Please share if you there are more ideas on this.
~ Tarun K