There is such a piece of code:
button = self.driver.find_element_by_id('........').click() button.click() And this:
self.driver.find_element_by_id('......').click() Both workers. Which is more correct ... true.
Source: https://ru.stackoverflow.com/questions/874468/
All Articles
button = self.driver.find_element_by_id('........').click()in thebuttonwritten, what theclick()method returns. If it does not return anything, thenNonewritten to thebutton, and on the next line you will have an error thatNoneTypedoes not have aclick()method. - insolorclick()method return is theclick()method? - Enikeyschik