New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to start selenium-server with htmlunit? #120
Comments
I can use htmlunit-driver with OLD selenium-server.
(Note: "org.openqa.grid.selenium.GridLauncherV3" defined as "Main-Class" on META-INF/MANIFEST.MF) Sample test written in Python: from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
selenium_hub_url = "http://localhost:4444/wd/hub"
htmlunit_capabilities = DesiredCapabilities.HTMLUNITWITHJS.copy()
driver = webdriver.Remote(
command_executor = selenium_hub_url,
desired_capabilities = htmlunit_capabilities
)
driver.get("https://example.com")
print("Title: " + driver.title)
assert "Example Domain" in driver.title
driver.quit() pip install selenium=3.141.0
python test.py Unfortunately, I can't use htmlunit-driver with selenium-4.x.y.
02:01:02.290 INFO [LoggingOptions.configureLogEncoding] - Using the system default encoding |
I think the issue is that there's no implementation of WebDriverInfo to provide the information that NodeOptions needs to match |
Hi, I want to use htmlunit driver for webscrawling, now I'm using chromedriver via selenium which takes a lot of CPU. Since my scripts are in Python and my knowledge of java is 0% I figured after some research I must start it via selenium-server remote connection. But I spent a lot of time trying to figure out this out but whatever I tried it just didn't work. Could someone please help?
The text was updated successfully, but these errors were encountered: