I have encountered an issue for UI elements on IE browser. The link doesn’t respond to Selenium click commands. The same commands works fine on chrome browser.
I have used Actions also, but same problem it's not identifying the element.
code:
WebElement element = driver.findElement(By.xpath("//a[contains(@href, '#cwt_services')]"));
Actions action = new Actions(driver);
action.moveToElement(element).perform();
WebElement subElement = driver.findElementByXPath("//*[@id=\"yui-gen4\"]/a");
action.moveToElement(subElement);
action.click();
action.perform();
Image of the code:
Please help me how to handle this scenarios on IE browser.
element
and then without any interaction on it moving tosubElement
? Are you sure your code logic implements the expected user behavior? – Alexey R. Aug 9 '18 at 10:49yui-gen4
, while your list element has idyui-gen1
. I suppose the displayed HTML fragment is not complete, else it wouldn't work in Chrome. – Bouke Oct 8 '18 at 12:21