There appears to be a dilemma, a problem, that I see quite often on the selenium mailing lists and forum boards. To sum things up, they usually read-"help! my tests are giving me errors...sometimes". But why? Why are your tests erroneous and why sometimes? After all, tests that give false results aren't worth their weight in bytes. I scroll down and look for any clues, an explanation, a traceback, or even better...a code snippet. Aha! Some code.
comment_button = webdriver.find_element_by_css_selector("#comment") Read more »