I need to check a checkbox called standards,
please see screenshot.
I was able to expand the information type
dropdown via:
By.xpath("//div[contains(@class, 'expand') and h3[contains(text(), 'Information Type')]]")
I need to check a checkbox called standards,
please see screenshot.
I was able to expand the information type
dropdown via:
By.xpath("//div[contains(@class, 'expand') and h3[contains(text(), 'Information Type')]]")
After expand Information Type
element you should wait until Standards
check box element getting visible and clickable using WebDriverWait
as below :-
new WebDriverWait(driver,10).until(ExpectedConditions.elementToBeClickable(By.xpath(".//li[normalize-space(.)='Standards']/input"))).click();
You can also use this xpath
as well :
.//li[contains(.,'Standards')]/input