I am trying to use selenium to load a waiting list and click the button, but I can't seem to find the element

geralt110

I've tried to use find_element_by_class_name and link text and both result in NoSuchElement Exception. I'm just trying to click this Join waitlist button for https://v2.waitwhile.com/l/fostersbarbershop/list-view - Any assistance is greatly appreciated.

from selenium import webdriver
import time

PATH = "C:\Python\Pycharm\attempt\Drivers\chromedriver.exe"
driver = webdriver.Chrome(PATH)

driver.get("https://v2.waitwhile.com/l/fostersbarbershop/list-view")

join = False

while not join:

    try:
        joinButton = driver.find_element_by_class_name("disabled")
        print("Button isnt ready yet.")
        time.sleep(2)
        driver.refresh()

    except:
        joinButton = driver.find_element_by_class_name("public-submit-btn")
        print("Join")
        joinButton.click()
        join = True
KunduK

It seems you have synchronization issue.

Induce WebDriverWait() and wait for element_to_be_clickable() for following ID locator

WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.ID, "join-waitlist"))).click()
WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.ID, "ww-name"))).send_keys("TestUser")

You need to import below libraries.

from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC 

browser snapshot

enter image description here

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

I am trying to use selenium to load a waiting list and click the button, but I can't seem to find the element

From Dev

How come I am getting InvalidSelectorException when trying to click a button using Selenium?

From Dev

I am trying to index a Dictionary but I don't know how. I am trying to access the data in "rates" but can't seem to get in there

From Dev

I am trying to write a query but can seem to think of a way to do it

From Dev

an error i can't seem to find

From Dev

I am a beginner trying to make a click listener for a button in java, can you help me?

From Dev

I can't seem to get a way to get radio button group click events on jQuery ContextMenu by swisnl

From Dev

New to programming and trying to finish this task for school, I can't seem to add numbers in a list together

From Dev

New to programming and trying to finish this task for school, I can't seem to add numbers in a list together

From Dev

I am struggling finding out why am I getting a null pointer exception. I know it's because of the null but I can't seem find which one

From Java

Python says it can't find the file I am trying to rename even though it can read the file name

From Dev

I have a segmentation fault that I can't seem to find in C

From Dev

Python Selenium - Can click element directly when it was present no need waiting for page load complete?

From Dev

Python Selenium - Can click element directly when it was present no need waiting for page load complete?

From Dev

I am trying to use Eclipse to create a button from one activity to another but it doesn't work

From Dev

Trying to click a button in Web Page, but can't find Class Name

From Dev

I am trying to combine Spring WebMVC and Apache CXF but the service can't be find. Why?

From Dev

I can't click button in Bootstrap popover

From Dev

I can't seem to get my html button tag to work?

From Dev

Selenium: How can i say to Selenium to wait for a button element?

From Dev

i m trying to find element href by selenium in java

From Dev

Why can't I click this element?

From Dev

I am trying to create an writable nested serializer in django, but can't use post method properly

From Dev

Selenium java trying to click list element

From Dev

Memory Leaking, I can't seem to find why

From Dev

Syntax Error which I can't seem to find

From Dev

I am trying to solve this question i can't find what (char*)ptr2 - (char*)ptr1 is returning

From Dev

I am trying to make the tabs of an asp.net wizard clickable links but it doesn't seem to work

From Dev

I am trying to write a simple asynchronous code in JS, but it doesn't seem to work

Related Related

  1. 1

    I am trying to use selenium to load a waiting list and click the button, but I can't seem to find the element

  2. 2

    How come I am getting InvalidSelectorException when trying to click a button using Selenium?

  3. 3

    I am trying to index a Dictionary but I don't know how. I am trying to access the data in "rates" but can't seem to get in there

  4. 4

    I am trying to write a query but can seem to think of a way to do it

  5. 5

    an error i can't seem to find

  6. 6

    I am a beginner trying to make a click listener for a button in java, can you help me?

  7. 7

    I can't seem to get a way to get radio button group click events on jQuery ContextMenu by swisnl

  8. 8

    New to programming and trying to finish this task for school, I can't seem to add numbers in a list together

  9. 9

    New to programming and trying to finish this task for school, I can't seem to add numbers in a list together

  10. 10

    I am struggling finding out why am I getting a null pointer exception. I know it's because of the null but I can't seem find which one

  11. 11

    Python says it can't find the file I am trying to rename even though it can read the file name

  12. 12

    I have a segmentation fault that I can't seem to find in C

  13. 13

    Python Selenium - Can click element directly when it was present no need waiting for page load complete?

  14. 14

    Python Selenium - Can click element directly when it was present no need waiting for page load complete?

  15. 15

    I am trying to use Eclipse to create a button from one activity to another but it doesn't work

  16. 16

    Trying to click a button in Web Page, but can't find Class Name

  17. 17

    I am trying to combine Spring WebMVC and Apache CXF but the service can't be find. Why?

  18. 18

    I can't click button in Bootstrap popover

  19. 19

    I can't seem to get my html button tag to work?

  20. 20

    Selenium: How can i say to Selenium to wait for a button element?

  21. 21

    i m trying to find element href by selenium in java

  22. 22

    Why can't I click this element?

  23. 23

    I am trying to create an writable nested serializer in django, but can't use post method properly

  24. 24

    Selenium java trying to click list element

  25. 25

    Memory Leaking, I can't seem to find why

  26. 26

    Syntax Error which I can't seem to find

  27. 27

    I am trying to solve this question i can't find what (char*)ptr2 - (char*)ptr1 is returning

  28. 28

    I am trying to make the tabs of an asp.net wizard clickable links but it doesn't seem to work

  29. 29

    I am trying to write a simple asynchronous code in JS, but it doesn't seem to work

HotTag

Archive