Answer the question
In order to leave comments, you need to log in
Why in 'headless' browser mode does Selenium not click on the button?
Hello.
Maybe someone came across why in the 'headless' mode Selenium does not click on the button, or clicks somehow "virtually" (in fact, there is no click).
That is, if I write code like this:
browser.find_element_by_class_name('posting_submit.button-pro').click()
share = browser.find_element_by_class_name('posting_submit.button-pro')
browser.execute_script("arguments[0].click();", share)
share = browser.find_element_by_class_name('posting_submit.button-pro')
webdriver.ActionChains(browser).move_to_element(share).click(share).perform()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question