Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- driver.wait(until.elementLocated(By.xpath("//*[@data-test-id='menu-product-name-spicy thai chicken bowl']//*[@class='product-name h4 capitalize']")))
- .then(function(productName){
- console.log( productName.attr("value"));
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement