I have installed Enterprise mode on IE11 to support applications which are only run on lower version of IE. Using Enterprise mode on, to support application adhered to IE10 only I started scripting. I am successfully able to traverse few pages but at one particular sidebar I am not able to click element. It gets highlighted using javascript which means I find the element. But I am not able to click the element. it gets dotted square around the element. I don't get any exception on that line. There are no frames issue.
P.S: One of the post stated that there might be an issue with unexceptional behaviour of Tomcat. Due to which I find element but click() event does not work.
答案 0 :(得分:0)
尝试:
element.sendKeys(Keys.ENTER);
如果不能正常工作,请尝试:
JavascriptExecutor executor = (JavascriptExecutor)driver;
executor.executeScript("arguments[0].click();", element);