I want to run some query on here
from time import sleep
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
driver.get("https://www.scribbr.com/paraphrasing-tool/")
WebDriverWait(driver, 30).until(
EC.visibility_of_element_located((By.TAG_NAME, "iframe")))
frames = driver.find_elements(by=By.TAG_NAME, value='iframe')
for f in frames:
print("Frame src: ", f.get_attribute('src'))
# Frame src: https://quillbot.scribbr.com/?
# independentTool=true&language=EN&partnerCompany=scribbr.com
# Frame src:
# Frame src: https://consentcdn.cookiebot.com/sdk/bc-v4.min.html
driver.switch_to.frame(0)
print(driver.page_source)
# '<html><head></head><body></body></html>' !!!!
input_text_area = driver.find_element(By.ID, 'paraphraser-input-box') # `NoSuchElementException`