I am trying to scrape data off a website using Selenium in Python, where the data only appears once I click a 'Details' button, the problem is that this button isn't initially visible and requires scrolling on an internal scroll bar (circled in red)
For reference, here's the website: https://www.abt-sportsline.com/tuning/configurator#80706385!43C6B47
The goal is to scroll this internal scroll bar so I can click the button and view/scrape the data.
Here's my initial code:
scrollBar = driver.find_element(By.XPATH,'//*[@id="mCSB_1_dragger_vertical"]/div')
driver.execute_script("arguments.scrollBy(0,arguments[0].scrollHeight)", scrollBar)
temp_element = in_tab_object.find_element(By.CSS_SELECTOR,"div > div > div > div.row > div.col-xs-12.product-details > div > div.text-right.details-link > span.icon-ArrowRight")
temp_element.click()
This does not scroll the internal bar at all and I get the following error:
selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable
I have another idea of solving this problem, where I find the scrollbar container and click the bottom of it, hence, scrolling all the way down, but I am unsure how to specify clicking local coordinates of a container.
Some help would be appreciated!