skip to Main Content

How to use Javascript in Selenium in Java

I found out that JavaScript is not working at all in my Selenium Tests in Java. I do not know why. Any suggestions? ((JavascriptExecutor) driver).executeScript("return arguments[0].innerText", driver.findElement(By.cssSelector("[id$=main:domainsCounter]"))); The javascript works fine in the console of the browser.

VIEW QUESTION

how can I scrape the subtitle from a javascript driven page with python

I am trying to scrape this site: https://www.msn.com/nl-be/nieuws/other/de-50-beste-netflix-series-volgens-the-new-york-times/ss-BB1kJC5H?rc=1&ocid=winp1taskbar&cvid=c774477be4b04494b3690631644cf5a9&ei=3#image=2 I am trying to get the title 'Friday Night Lights' but I don't seem to get past the javascript. I am using python and selenium or beautifullsoup. tried WebDriverWait(driver, 10) I used…

VIEW QUESTION

Docker – Cannot connect to chrome at 127.0.0.1:53233, This version of ChromeDriver only supports Chrome version 114. Current browser version is 127.0.6533.72

driver code: from selenium.webdriver.common.by import By from selenium.webdriver.chrome.service import Service from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as ec import undetected_chromedriver2 as uc from undetected_chromedriver2.options import ChromeOptions import time from webdriver_manager.chrome import ChromeDriverManager from selenium.webdriver.chrome.service import Service import pickle…

VIEW QUESTION
Back To Top
Search