Context: I (as a soil researcher) have been working on a script to automate the process of acquiring data from a large database site in the Netherlands.
The site is called https://www.dinoloket.nl/ondergrondmodellen
whenever you select a location you can get an expected soil build-up for different models. the model that I use is the regis v2.2. that shows different lithologie formations.
so far i have been able to create a script that selects the correct model, inputs a address and export the depths of the different layers
Example of what the site gives as layer output
in the image it also shows a tooltip that is different for each color in the column. I would like to be able to access this text however, it keeps disappearing.
I have read other related questions however, what is different is that the tooltip text is variable depending on where you are in the column.
in the image you can see that the tooltip (id="columns-tooltip") has a changing message whenever the location on the tooltip changes.
Does anybody has an idea on how to access the text "Complexe eenheid, bestaande uit een afwisseling van zandige klei, midden en fijn zand, klei en veen en een weinig grof zand"
I am aware that the question is vague, however some pointers in the right direction might already be helpful.
Thank you
[![driver = webdriver.Chrome(PATH)
driver.get("https://dinoloket.nl\ondergrondmodellen")
#---------------- % to the website
time.sleep(1)
#---------------- % access the frame where specific buttons are located
frame = driver.find_element_by_css_selector('#block-main-content > article > div > div > div > div > div.ondergrond-modellen-tab.active > div > div > div > iframe')
driver.switch_to.frame(frame)
#----------------
time.sleep(1)
#---------------- % select model by clicking the radiobutton next to it
selectmodel= driver.find_element_by_css_selector("#mapDiv > div.esri-view-user-storage > div > dinoloket-filter-toolbar > div > div > div:nth-child(4) > p-radiobutton > div > div.ui-radiobutton-box.ui-widget.ui-state-default")
selectmodel.click()
#--------- % find the magnifying glass button and input an address
confirmdialog = driver.find_element_by_id("idSearch-button")
confirmdialog.click()
input_address= driver.find_element_by_css_selector('#search-field > div > div > input')
input_address.send_keys("Rederijweg 26, Oosterhout")
#----------------
time.sleep(1)
#---------------- % hit enter
input_address.send_keys(Keys.RETURN)
#----------------
time.sleep(2)
#---------------- %find the drillcore button that gives access to the model
drillbutton = driver.find_element_by_id("drill-button")
drillbutton.click()
#----------------
time.sleep(1)
#---------------- % click in the map element to get the model of that specific point
start = driver.find_element_by_css_selector('body > dinoloket-app > div')
start.click()][1]][1]






