如何在AuoIT中使用JavaScriptExecutor?

时间:2019-07-03 05:40:27

标签: selenium-chromedriver autoit

我如何使用像这样的代码,但要通过自动方式将其编写

IJavaScriptExecutor js = chromeDriver as IJavaScriptExecutor;
var dataFromJS = (string)js.ExecuteScript("var content = document.getElementsByClassName('contentpagetop'[0].children[0].innerHTML;return content;");
MessageBox.Show(dataFromJS);

谢谢阅读!

0 个答案:

没有答案