I have encountered an issue for UI elements on IE browser. The doesn’t respond to click commands. The same commands fine on 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:

enter image description here

Please help me how to handle this scenarios on IE browser.



Source link https://sqa.stackexchange.com/questions/35148/link--thru-selenium-works-in-chrome-but-not-in-ie

LEAVE A REPLY

Please enter your comment!
Please enter your name here