We might be suprising sometimes while executing selenium script, though element is getting recognized, it is not clicking on the element.
There could be various reasons for that
1. the element is rendering in the DOM which is not loaded but it is availalbe on the page
2. Element is available but it's href link made with # at the end, therefore it won't navigate any reference link
But for the 1st reason we can use alternative options and make our selenium script working.
Basically there 4 ways available to click on element with selenium. Following are the ways.
1. .Click
2. ((JavascriptExecutor) driver).executeScript("arguments[0].click();", yourelement);
3. yourelement.sendKeys(Keys.RETURN) or .sendKeys(Keys.ENTER)
4. Actions class:
Actions actions = new Actions(driver);
actions.click(signOnImage).perform();
Best Automation Anywhere course with placement assistance. Please visit our website for more info: Best Automation Anywhere Training Institute in Chennai
ReplyDeleteThis post is so interactive and informative.keep update more information...
ReplyDeleteJava Training in Mumbai
Java Certification in Mumbai
Best Java Training in Mumbai
digital marketing course in mumbai
ReplyDeletedigital marketing course in ahmedabad
digital marketing course in kochi
digital marketing course in trivandrum
This post is so interactive and informative.keep updating more information...
ReplyDeleteBest Java Training In Mumbai
Java Course In Ahmedabad
Best Java Training In Kochi
Java Classes In Trivandrum
Java Training Institute In Kolkata
Digital marketing course certifiaction
ReplyDeleteTop Digital marketing course provider in kochi
ReplyDeleteLogistics course in kochi
ReplyDeleteBest top rated digital marketing course in kochi
ReplyDelete