How to click using By.Partial_Text_Link in a proper way?
There is probably a syntax error, but pycharm doesn't give me a solution.
The searched element is not found, the program stops. The faulty code looks like this:
WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.PARTIAL_LINK_TEXT, value="LogSyS"))).click()
How does the syntax have to look like?
This code iswebdriverwa working, but i need WebDriverWait function:
driver.find_element(By.PARTIAL_LINK_TEXT, value= "LogSys").click()
Had there been a syntax error you would have faced a
TypeErrorwhich seems isn't the case in hand.To click using
By.PARTIAL_LINK_TEXTyou can use the following optimized syntax:If the desired element is still not located/found and raises a
TimeoutExceptionyou may have a to relook at the locator strategy