私はセレンを使用していて、図表のポップアップdiv内をスクロールしようとしています。セレンの中でスクロールする
「https://www.instagram.com/kimkardashian/」のようなページが表示され、フォロワーをクリックすると、フォロワーリストがスクロールダウンできなくなります。
私は、ホバー、click_and_hold、およびその他のいくつかのトリックを使用してdivを選択しようとしましたが、どれもうまくいきませんでした。
これを選択するにはどうすればよいでしょうか?
これは私がこれまで試したものです:
driver.find_elements_by_xpath("//*[contains(text(), 'followers')]")[0].click()
element_to_hover_over = driver.find_elements_by_xpath("//*[contains(text(), 'Follow')]")[12]
hover = ActionChains(webdriver).move_to_element(element_to_hover_over)
hover.click_and_hold()
driver.execute_script("window.scrollTo(0, document.body.scrollHeight);")
driver.execute_script("window.scrollTo(0, document.body.scrollHeight);")
driver.execute_script("window.scrollTo(0, document.body.scrollHeight);")