java模拟点击和下拉框选中的动作
- 摘要:browser.executeJavaScriptAndReturnValue("document.getElementsByClassName('select_sort')[0].options[1].selected=true");browser.executeJavaScriptAndReturnValue("document.getElementById('cPageBtn').click()");//点击差评browser
- 标签:Java
browser.executeJavaScriptAndReturnValue("document.getElementsByClassName('select_sort')[0].options[1].selected=true");
browser.executeJavaScriptAndReturnValue("document.getElementById('cPageBtn').click()");
//点击差评
browser.executeJavaScriptAndReturnValue("document.getElementsByClassName('comments-tab-nav')[0].getElementsByTagName('li')[3].click();");