N
N
NO1nam2020-03-19 13:44:33
Python
NO1nam, 2020-03-19 13:44:33

How to make that would press the button until it disappears?

The problem is that he only presses me 1 time, but I need to press as many times as this button is visible on the page
my code

arena = driver.find_elements_by_partial_link_text('Атаковать')
    for arenas in arena:
        try:
            arenas.click()
        except Exception:
            pass

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SvinkaBacilka, 2020-03-20
@NO1nam

while(web_element.is_visible):
    web_element.click()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question