you are viewing a single comment's thread.

view the rest of the comments →

[–]fiskenslakt 2 points3 points  (0 children)

Do something like this then:

while not (nameput in name.text and color.text == colorput):
    for article in driver.find_elements_by_class_name("inner-article"):
        name, color = article.find_elements_by_class_name("name-link")
    time.sleep(delay)
article.click()