'WebElement and drive.driver little tricky
I am trying to understand what would it be the right thing to do in here and i do not fully understand it.
Take a look:
String <WebElement> a = drive.driver.getTitle(By.xpath("somelocator"));
List <WebElement> a = drive.driver.findElement(By.xpath("somelocator"));
Boolean <WebElement> a = drive.driver.switchTO(By.xpath("somelocator"));
Map <WebElement> a = drive.driver.quit(By.xpath("somelocator"));
List <WebElement> a = drive.driver.findElements(By.xpath("somelocator"));
What would it be the right thing to do? Why?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
