Skip to content Skip to sidebar Skip to footer

Seleneium Exceptions - Arguments[0].click Is Not A Function Using Execute_script() In Selenium Python

I am scraping an interactive map on this website (https://collegecrisis.shinyapps.io/dashboard/) using Python and Selenium. Specifically, I want to get the text found in the pop-up

Solution 1:

As all the dots are overlapping with each other its a better idea to use ActionChains class methods to mimic moving mouse cursor over them and then click:

ActionChains(driver).move_to_element(node).click().perform() # Used actionchains class to click to open popup
time.sleep(.5)
contents.append(driver.find_element_by_class_name('leaflet-popup-content').text)
ActionChains(driver).move_to_element(node).click().perform() #click to close popup

Post a Comment for "Seleneium Exceptions - Arguments[0].click Is Not A Function Using Execute_script() In Selenium Python"