V
V
Vadim kyklaed2017-04-14 22:23:03
Python
Vadim kyklaed, 2017-04-14 22:23:03

How to check div class="popup__content with selenium + webdriver?

Hello!
How to check the drop-down box in yandex.ru when entering a query in the search? i found its xpath and class but can't check.
The question is that I need to enter a word into the search, then check whether a window has appeared and then perform a search.
What is the algorithm? why can't I check if there is a list or not. and simply says that such a pass does not work or there is no such class. until nothing is entered in the search, the class is inactive

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Bjornie, 2017-04-14
@kyklaed

import time

time.sleep(<seconds>) # расставить паузы там где нужно подождать

Wait until the desired element appears in the DOM and selenium will find it. Otherwise an error will occur

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question