Closed tudopropaganda closed 2 weeks ago
…the popup
The program was crashing when the element was not found in the page.
followCompany = self.driver.find_element(By.CSS_SELECTOR,"label[for='follow-company-checkbox']")
Just created a try/except using the already imported NoSuchElementException.
thank you, i will try another approach. best!
…the popup
The program was crashing when the element was not found in the page.
followCompany = self.driver.find_element(By.CSS_SELECTOR,"label[for='follow-company-checkbox']")
Just created a try/except using the already imported NoSuchElementException.