Testing preceding combinator elements , Selenium Notes, Examples, Videos By.www.laxmiroy.blogspot.com/
to store "another chile element"
String str = selenium.getText("css=span#firstChild + span");
to store "last child element"
String str = selenium.getText("css=span#firstChild + span + span");
How to store the text of preceding combinator element in IDE
to store "another chile element"
<tr>
<td>storeText</td>
<td>css=span#firstChild + span</td>
<td>str</td>
</tr>
to store "last child element"
<tr>
<td>storeText</td>
<td>css=span#firstChild + span + span </td>
<td>str</td>
</tr>
No comments:
Post a Comment