I've written a script in python with selenium to activate each box connected to each dot available on the map in a webpage but unfortunately I can't do that with my script. I'cant get any idea to move on. Hope somebody will guide me to the right direction.
Here is what I've tried so far:
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
driver = webdriver.Chrome()
driver.get("https://acwi.gov/monitoring/vm/programs/vm_map.html")
wait = WebDriverWait(driver, 10)
element = wait.until(EC.presence_of_all_elements_located((By.TAG_NAME, 'iframe')))
driver.switch_to.frame(driver.find_element_by_tag_name("iframe"))
for item in driver.find_elements_by_xpath("//g[@id='NWQMC_VM_directory_June2016_3915_0_layer']"):
item.find_element_by_xpath(".//circle[@fill='rgb(237, 81, 81)']").click()
driver.quit()
Elements within the map in which a single dot is given below. It's huge so I've curtailed for a single dot:
<circle fill="rgb(237, 81, 81)" fill-opacity="1" stroke="rgb(153, 153, 153)" stroke-opacity="1" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" cx="478" cy="306" r="4" transform="matrix(1.00000000,0.00000000,0.00000000,1.00000000,0.00000000,0.00000000)" fill-rule="evenodd" stroke-dasharray="none" dojoGfxStrokeStyle="solid"></circle>
Image of some activated dot: image_link