I'm trying to check checkbox but unable to do. Below are the alternates that i've tried till now :
(driver.findElement(By.xpath("//input[@name='selectedUpgCtn']")).click();(driver.findElement(By.name("selectedUpgCtn")).click();JavascriptExecutor js1 = (JavascriptExecutor)driver;js1.executeScript("arguments[0].click();",driver.findElement(By.xpath("//input[@name='selectedUpgCtn']")));js.executeScript("document.getElementByName('selectedUpgCtn').click()");(driver.findElement(By.name("selectedUpgCtn")).sendKeys(Keys.RETURN);(driver.findElement(By.name("selectedUpgCtn")).sendKeys(Keys.ENTER);- the above 2 ways i have tried using xpath as well.
I have written code to wait, to check if the element is enabled or not, to check if element is clickable or not..but still can't check it. I'm also not getting any issue like element not found etc. the script simply stops there.Below is the code of that checkbox:
<input name="selectedUpgCtn" class="floatLeft ctncheckbox_6784290495 "type="checkbox"value="6784290495"targetsrc="wirelessUpgradeEligibilityModule" targetevent="disableStartUpgrade">
Any help would be really appreciated...