katalon-studio / katalon-testops

Manage automation results, like you test it manually
https://www.katalon.com/testops/
12 stars 18 forks source link

[Bug] Can't use InnerText or InnerHtml in WebUI.executeJavaScript #224

Open anandarony opened 2 years ago

anandarony commented 2 years ago

Code: WebUI.executeJavaScript("document.querySelector('.dx-fixed-columns > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > table:nth-child(1) > tbody:nth-child(2) > tr:nth-child(1) > td:nth-child(21)').innerText", null) ;

Not able to use InnerText or InnerHtml in Javascript. When I use this syntax it shows null. But if I run into browser consloe I got result

Steps to Reproduce:

1. 2.

Expected behavior: Result: Value will shows

Screenshots: image