Error Occurred when start remoteWebDriver: ClassNotFound Exception: io. opentelemetry. sdk. autoconfigure. AutoConfiguredOpenTelemetrySdk

Can you try this to see how it works?

import org.openqa.selenium.remote.HttpCommandExecutor

import org.openqa.selenium.remote.RemoteWebDriver

import org.openqa.selenium.chrome.ChromeOptions

ChromeOptions options = new ChromeOptions()

options.addArguments("--disable-gpu")

options.addArguments("--window-size=1920,1080")

URL gridUrl = new URL("http://localhost:4444/wd/hub")

// Use the HttpCommandExecutor explicitly

HttpCommandExecutor executor = new HttpCommandExecutor(gridUrl)

RemoteWebDriver driver = new RemoteWebDriver(executor, options)

DriverFactory.changeWebDriver(driver)

WebUI.navigateToUrl('https://www.google.com/')
1 Like