Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
get hotel info from hotelscombined
#2
find_element_by_ methods will return just one/first element
You need to use find_elements_by_ methods that will return list of multiple elements

then you will iterate over the elements in the list and extract .text property

Locating elements docs
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
get hotel info from hotelscombined - by nikana - Apr-22-2019, 10:50 AM
RE: get hotel info from hotelscombined - by buran - Apr-22-2019, 12:03 PM
RE: get hotel info from hotelscombined - by Larz60+ - Apr-22-2019, 12:17 PM
RE: get hotel info from hotelscombined - by nikana - Apr-22-2019, 03:38 PM
RE: get hotel info from hotelscombined - by Larz60+ - Apr-22-2019, 08:34 PM
RE: get hotel info from hotelscombined - by buran - Apr-23-2019, 08:15 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020