While running webdriver IO codes returning Object Promises

105 views Asked by At
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]" **

0

There are 0 answers