Sunday, January 7, 2018

Play with objects and variables

- Do you know we can create variable of type WebElement and WebObject. And we can make use of that variable to do some actions on the elements.

WebElement a;

set a = obj1.findElementByid("ssds");   'check if 'set' could be used or not
a.set "abc"    ' 'a' could be used like alias name for web element

No comments:

Post a Comment