October 2018
Intermediate to advanced
192 pages
5h 12m
English
With this locator, DOM traversal becomes extremely simple. ByChained traverses from the first locator in the variable argument list and continues until the last element locator in the list.
We have introduced one more test textbox, which is inside a span, and the span is inside a div. Let's see the final structure of the HTML document.
The following HTML code shows the structure of the sample page:
<html> <body> <p> First Name: <input type=text id=fid/> </p> <p> Last Name: <input type=text name=lname/> </p> <p> Address: <input type=textarea class="tarea" id="tid" name="tname"/> </p> <div class="div1"> <span id="spn1"> Test: <input type=text name=testname/> </span> </div> </body></html>
The following code walks through ...
Read now
Unlock full access