'Selenium(python) is unable to find all JavaScript loaded HTML
I am trying to automate this link using selenium: https://poocoin.app/tokens/0x87230146e138d3f296a9a77e497a2a83012e9bc5
But selenium is unable to find the chart's HTML. I am looking for these elements, "//*[@id='header-toolbar-intervals']/div" and "/html/body/div[2]/div[1]/div[1]/div/div[2]/div/div[2]"
Here is my code:
from time import sleep
from shutil import which
from selenium import webdriver
from selenium import webdriver
from time import sleep
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
chrome_options = Options()
from seleniumwire import webdriver
driver = webdriver.Chrome(chrome_options=chrome_options)
driver.maximize_window()
driver.get('https://poocoin.app/tokens/0x87230146e138d3f296a9a77e497a2a83012e9bc5')
sleep(10)
print(driver.page_source)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
