'While running webdriver IO codes returning Object Promises
get verifyText(){
return $(".uU7dJb");
}
async loadText(){
var Elem;
Elem = (await this.verifyText).getText();
console.log(" " +Elem);
}
**running above code not returning Element text instead it returning " [object Promise]" **
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
