I have the following html code, i am unable to select the check box.
<table style="overflow:hidden;" cellpadding="0" cellspacing="0" border="0" role="presentation" class="table-header">
<tbody>
<tr>
<td class="cell-container cell-container-0 cell-selector locked xwtTable_1562932879200_0" role="presentation" columnidx="0" style="vertical-align: middle;width: 0px;" tabindex="0" aria-readonly="true">
<div class="cell cell-0 ellipsis no-wrapping cell-selector ellipsis no-wrapping xwtTable_1562932879200_0" role="columnheader" style="text-align: center;" title="">
<div tabindex="0" class="xwtSelectAll dijitCheckBox" "="" style="visibility:visible">
<input type="checkbox" class="select-all" style="visibility:visible">
</div>
</div>
</td>
</tr>
</tbody></table>
I am getting timeoutexception:
element =wait.until(EC.element_to_be_clickable((By.XPATH, "//div//input[@class='select-all']")))
ERROR [338.067268s]: test_login (main.TestHome)
Traceback (most recent call last): File "TestHome.py", line 55, in test_login s.filterclick() File "C:/Users/rakadali/PycharmProjects/CMM1\Pageobjects\searchdevice.py", line 25, in filterclick WebDriverWait(self.driver, 20).until(EC.element_to_be_clickable((By.XPATH, "//table[@class='table-header']/tbody/tr/td//div[contains( @class, 'dijitCheckBox')]/input[@class='select-all']"))).click() File "C:\Program Files (x86)\Python37-32\lib\site-packages\selenium\webdriver\support\wait.py", line 80, in until raise TimeoutException(message, screen, stacktrace) selenium.common.exceptions.TimeoutException: Message:
below is the code:
def filterclick(self):
try:
wait = WebDriverWait(self.driver, 80)
element =wait.until(EC.element_to_be_clickable((By.XPATH, "//div//input[@class='select-all']")))
element.click()
finally:
self.driver.close()
i want to select the check box