Please need your support to click on a link in the following:
I tried the below code but doesn't work:
web.find_element(By.XPATH,'//*[@id="HUI_i_0"]/table/tbody/tr/td/a').click()
It gives me error:
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//*[@id="HUI_i_0"]/table/tbody/tr/td/a"}
The desired element is a dynamic element, so to click() on the clickable element you need to induce WebDriverWait for the element_to_be_clickable() and you can use either of the following locator strategies:
Using PARTIAL_LINK_TEXT:
Using CSS_SELECTOR:
Using XPATH:
Note: You have to add the following imports :
References
You can find a couple of relevant discussions on NoSuchElementException in: