T
T
Tha_Falcon2020-06-29 17:29:29
Python
Tha_Falcon, 2020-06-29 17:29:29

How to get page links from a list of WebElements in Selenium?

When working with Selenium, I encountered a need to get a list of links. I solved this problem with find_elements_by_xpath(), but now I can't use this list to follow the links, which are the web elements in it. .click() only works on the first link, and then the program crashes with an exception.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2020-06-29
@dimonchik2013

Well, it's necessary to open
and understand static or dynamic links in new windows - why would he fly out?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question