I am looking for a way to extract/print text which is located within a href element.
Code trials:
WebDriverWait(driver, 20).until(EC.visibility_of_element_located(By.XPATH('//div[contains(@class, "style1")]')))
driver.find_element_by_xpath('//div[contains(@class, "style1")]').text
Error massage: TypeError: 'str' object is not callable
Many more trials to locate this "0" without success. The number will change when some open 'tickets' appear in the system.
How this could be done?
