I am running selenium automation to click on a checkbox but after trying all the Xpaths and CSS, its not able to see that element.
[The checkbox][1]
<input class="styled" type="checkbox" data-bind="checked:isExtendedModel, attr: {disabled : isExtendedModel, id: 'extended-model-'+renditionNumber() }" id="extended-model-1">
Below are the Xpaths and CSS I have already tried 1. XPATH::/html//input[@id='extended-model-1'] 2. CSS :: [id='extended-model-1'] 3. XPATH::////[@id="renditionRow_1"]/div/div/div[2]/div[1]/div[2]/input[@id='extended-model-1'] 4. XPATH:://[@id="renditionRow_1"]/div/div/div[2]/div[1]/div[2]/input[@id='extended-model-1'] 5. XPATH:://[@id="renditionRow_1"]/div/div/div[2]/div[1]/div[2]/input[@type='checkbox'] 6. XPATH:://input[@id='extended-model-1'] 7. XPATH::/html[1]/body[1]/div[1]/div[4]/div[2]/div[1]/div[3]/div[1]/form[1]/div[2]/div[3]/div[1]/div[1]/div[2]/div[1]/div[2]/div[1]/div[1]/div[1]/div[2]/div[1]/div[1]/div[1]/div[2]/div[1]/div[2]/input[1] 8. CSS::#extended-model-1
I even verified that //*[@id="renditionRow_1"]/div/div/div[2]/div[1]/div[2] is present and the automation is looking at it header where the checkbox is placed but when I try to click on checkbox then it keeps on giving me a message that its not visible.
I have worked with all other checkboxes in the entire application but this is the only one giving such an issue
commonspage.clickOnButton(ingestpage.videoAttributesicon().waitForVisible());
commonspage.verifyElementIsPresent(ingestpage.videoAttributesmodal());
ingestpage.extendedPayloadAttributeCheckbox().waitForAllPresent().isPresent();
commonspage.clickOnButton(ingestpage.extendedPayloadAttributeCheckbox());
I expect the checkbox to be clicked but its not able to find the element only
Aucun commentaire:
Enregistrer un commentaire