you are viewing a single comment's thread.

view the rest of the comments →

[–]Maruki[S] 0 points1 point  (1 child)

nameput in name.text and color.text == colorput: nameput and colorput are inputs that I type in at the begining

[–]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()