Clicking on a button in selenium

Smithtool

I wanted to train selenium and scratch some information on website: https://www.stepstone.at/?gclid=CjwKCAiApNSABhAlEiwANuR9YAJKRjy_7hDuKPpJRL-zfaqDqc2zlAo9EgGmRHgs1Bvx5WRu_3ZPkBoC9_cQAvD_BwE&&ef_id=CjwKCAiApNSABhAlEiwANuR9YAJKRjy_7hDuKPpJRL-zfaqDqc2zlAo9EgGmRHgs1Bvx5WRu_3ZPkBoC9_cQAvD_BwE:G:s&cid=SEAdvert_Google_SEARCH_AT_Gen-E_c_Jobs_jobs_FPd_EtaId4-L1&loc_interest=&loc_physical=1000852&s_kwcid=AL!524!3!494891721515!e!!g!!jobs

This is my code:

search_job = input("Write your job that you are searching for: ")
search_city = input("Write your city where you want to find your job: ")
search_working_times = input("Write your working times: ")
PATH = "C:\Program Files\chromedriver.exe"
driver = webdriver.Chrome(PATH)
driver.get("https://www.stepstone.at/?gclid=CjwKCAiApNSABhAlEiwANuR9YAJKRjy_7hDuKPpJRL-zfaqDqc2zlAo9EgGmRHgs1Bvx5WRu_3ZPkBoC9_cQAvD_BwE&&ef_id=CjwKCAiApNSABhAlEiwANuR9YAJKRjy_7hDuKPpJRL-zfaqDqc2zlAo9EgGmRHgs1Bvx5WRu_3ZPkBoC9_cQAvD_BwE:G:s&cid=SEAdvert_Google_SEARCH_AT_Gen-E_c_Jobs_jobs_FPd_EtaId4-L1&loc_interest=&loc_physical=1000852&s_kwcid=AL!524!3!494891721515!e!!g!!jobs")
driver.implicitly_wait(5)

your_competence = driver.find_element_by_name("ke")
your_competence.send_keys(search_job)

your_city = driver.find_element_by_name("ws")
your_city.send_keys(search_city)

if "Vollzeit" == search_working_times:
    vollzeit = driver.find_element_by_id("ch1").click()

When i run this code anything else except the click in the button the console displays the following error:

selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: Element <input class="quickfilters__list-item-checkbox" type="checkbox" name="wt" value="80001" id="ch1"> is not clickable at point (21, 307). Other element would receive the click: <section class="prompt-container">...</section>
  (Session info: chrome=88.0.4324.104)

Could someone pls help me with this :)

Sanewa

I replicated your code and it looks like this is happening because of the pop up window with terms and rules. Just add driver.find_element_by_id("ccmgt_explicit_accept").click() to your code before trying to use page. With code like this all worked good:

    search_job = input("Write your job that you are searching for: ")
    search_city = input("Write your city where you want to find your job: ")
    search_working_times = input("Write your working times: ")
    driver = webdriver.Chrome(ChromeDriverManager().install())
    driver.get(
        "https://www.stepstone.at/?gclid=CjwKCAiApNSABhAlEiwANuR9YAJKRjy_7hDuKPpJRL-zfaqDqc2zlAo9EgGmRHgs1Bvx5WRu_3ZPkBoC9_cQAvD_BwE&&ef_id=CjwKCAiApNSABhAlEiwANuR9YAJKRjy_7hDuKPpJRL-zfaqDqc2zlAo9EgGmRHgs1Bvx5WRu_3ZPkBoC9_cQAvD_BwE:G:s&cid=SEAdvert_Google_SEARCH_AT_Gen-E_c_Jobs_jobs_FPd_EtaId4-L1&loc_interest=&loc_physical=1000852&s_kwcid=AL!524!3!494891721515!e!!g!!jobs")
    driver.implicitly_wait(5)

    driver.find_element_by_id("ccmgt_explicit_accept").click()

    your_competence = driver.find_element_by_name("ke")
    your_competence.send_keys(search_job)

    your_city = driver.find_element_by_name("ws")
    your_city.send_keys(search_city)

    if "Vollzeit" == search_working_times:
        vollzeit = driver.find_element_by_id("ch1").click()

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Using Selenium for clicking on button Python

From Dev

Clicking on button using python + selenium

From Dev

Selenium clicking button hidden by span

From Dev

Find and clicking button with selenium without ID

From Dev

python, locating and clicking a specific button with selenium

From Dev

clicking next button on reddit with selenium not doing anything

From Dev

Python Selenium clicking next button until the end

From Dev

Clicking a button which is inside another element Selenium

From Dev

Struggle clicking a a window closing button with selenium

From Dev

selenium - clicking on radio button generated by javascript

From Dev

Clicking button within span with no ID using Selenium

From Dev

Python Selenium keep clicking next button

From Dev

Trouble clicking button using Selenium with Python

From Dev

clicking on a button i cant find with selenium in python

From Dev

Selenium Python Clicking Button on Javascript Popup Does Nothing

From Dev

Selenium WebDriver: clicking a visible button inside a row of a table

From Dev

Clicking on a button with attribute role within div tag using Selenium

From Dev

Selenium Python Clicking Button on Javascript Popup Does Nothing

From Dev

Clicking span button by id of the parent(with id) - selenium with java

From Dev

selenium: How to get page source code after clicking a button

From Dev

Python Selenium : finding an element and clicking a button based on Text

From Dev

Selenium not clicking

From Dev

Element not interactable error clicking on Google Search button on Google homepage using Selenium Python

From Dev

Selenium + Python - After clicking on a button, how to I catch the pop up window (specifically, an upload image pop up)

From Dev

Selenium (Java) - Keep clicking a button until specific text is present in an element and fail if certain amount of time is exceeded

From Dev

Selenium webdriver -keep clicking on next button of calendar until the month title match found using java

From Dev

Tell Selenium web driver to keep clicking "next" button until it can't

From Dev

Clicking is not working in python selenium

From Dev

Clicking css buttons in selenium

Related Related

  1. 1

    Using Selenium for clicking on button Python

  2. 2

    Clicking on button using python + selenium

  3. 3

    Selenium clicking button hidden by span

  4. 4

    Find and clicking button with selenium without ID

  5. 5

    python, locating and clicking a specific button with selenium

  6. 6

    clicking next button on reddit with selenium not doing anything

  7. 7

    Python Selenium clicking next button until the end

  8. 8

    Clicking a button which is inside another element Selenium

  9. 9

    Struggle clicking a a window closing button with selenium

  10. 10

    selenium - clicking on radio button generated by javascript

  11. 11

    Clicking button within span with no ID using Selenium

  12. 12

    Python Selenium keep clicking next button

  13. 13

    Trouble clicking button using Selenium with Python

  14. 14

    clicking on a button i cant find with selenium in python

  15. 15

    Selenium Python Clicking Button on Javascript Popup Does Nothing

  16. 16

    Selenium WebDriver: clicking a visible button inside a row of a table

  17. 17

    Clicking on a button with attribute role within div tag using Selenium

  18. 18

    Selenium Python Clicking Button on Javascript Popup Does Nothing

  19. 19

    Clicking span button by id of the parent(with id) - selenium with java

  20. 20

    selenium: How to get page source code after clicking a button

  21. 21

    Python Selenium : finding an element and clicking a button based on Text

  22. 22

    Selenium not clicking

  23. 23

    Element not interactable error clicking on Google Search button on Google homepage using Selenium Python

  24. 24

    Selenium + Python - After clicking on a button, how to I catch the pop up window (specifically, an upload image pop up)

  25. 25

    Selenium (Java) - Keep clicking a button until specific text is present in an element and fail if certain amount of time is exceeded

  26. 26

    Selenium webdriver -keep clicking on next button of calendar until the month title match found using java

  27. 27

    Tell Selenium web driver to keep clicking "next" button until it can't

  28. 28

    Clicking is not working in python selenium

  29. 29

    Clicking css buttons in selenium

HotTag

Archive