Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Div Class HTML selector in Python
#1
Dears ,

i'm an iniciante in python and i'm working in a project to find a selector in HTML website

I'm using this structure as per below however the Pyhton is not finding the selector and besides this don't execute any function when reach this line on code and also revert with a error (attached)

jogar_roleta = WebDriverWait(driver, 10).until(EC.visibility_of_element_located((By.CSS_SELECTOR, 'div.images-container.new')))
jogar_roleta.click()

The field on HTML has this structure (attached)

<div class="images-container new" style="background-color: rgb(30, 30, 30);">...</div>

<div class="image-holder">...</div>

Am i selecting the wrong class?

We would appreciate to receive comments

Attached Files

Thumbnail(s)
   

.txt   Error Python.txt (Size: 1.18 KB / Downloads: 39)
Reply
#2
Thanks
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  HTML multi select HTML listbox with Flask/Python rfeyer 0 4,652 Mar-14-2021, 12:23 PM
Last Post: rfeyer
  TDD/CSS & HTML testing - CSS selector (.has-error) makoseafox 0 1,810 May-13-2020, 07:41 PM
Last Post: makoseafox
  Python3 + BeautifulSoup4 + lxml (HTML -> CSV) - How to loop to next HTML/new CSV Row BrandonKastning 0 2,377 Mar-22-2020, 06:10 AM
Last Post: BrandonKastning
  Downloading Images - Unable to find correct selector Brompy 4 2,976 Jan-22-2020, 04:54 PM
Last Post: snippsat
  BeautifulSoup4, How to get an HTML tag with specific class. Broadsworde 6 10,989 Nov-22-2018, 05:25 PM
Last Post: snippsat
  Python - Scrapy - CSS selector Baggelhsk95 1 5,567 Nov-07-2018, 04:45 PM
Last Post: stranac

Forum Jump:

User Panel Messages

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