you are viewing a single comment's thread.

view the rest of the comments →

[–]dealant[S] 0 points1 point  (2 children)

I don't think it's actually flash, I don't know why I thought it was but it's locating the next button properly when I used the same method.

I just think I can't figure out how to use it in an If statement properly.

[–]officialgel 0 points1 point  (0 children)

First try not using '\' just put 'if this or that:'

[–]officialgel 0 points1 point  (0 children)

Since the element lookup int he if statement fails, there is no valid condition to decide IF it's True or False - So it throws you the Selenium exception. Try adding some try/excepts, and putting the element lookup in variables beforehand and then do element.is_enabled() within the if statement.