Skip to content

Tag: selenium

How to get WebElement text with selenium

Please see the following element: Find my element: So after found this div and get the text using selenium with getText or getAttribute(“innerHTML”) the return: So my question is how to get only the last line without this x Answer The text you want is present in a text node and cannot be retrieved…

How to implemet singleThreaded=true in TestNG

In TestNG i am trying to undertand the use of singleThreaded=true attibute of @Test Annotation .I already referred http://testng.org/doc/documentation-main.html and http://beust.com/weblog2/archives/000407.html but didn’t got much help . My Question : Why do we need to execute method on single thread. R…