Selenium Webdriver integration
-
- Posts: 3
- Joined: Mon Apr 03, 2023 3:21 pm
Selenium Webdriver integration
With Ranorex 10.4.0, I'm trying to run a simple web test, using the ranorex site, without display. For that I'm using the selenium webdriver integration and I've configured a new endpoint, I've started the selenium standalone server, I've set the automation root, and I'm using these capabilities:
{
"browserName": "chrome",
"chromeOptions": {
"args" : ["headless"]
}
}
When I run the test, I get this error about casting strings, and I'm a little bit lost for not being able to run the simplest test in the world, and I guess it's because of the capabilites json.
Can you please tell me what might be the problem?
Thanks!
You do not have the required permissions to view the files attached to this post.
Re: Selenium Webdriver integration
Hi,
the following json is generated by GPT4, lets give a try!
I am not a json guru, but seems u are missing the '--' chars before 'headless' arg.
the following json is generated by GPT4, lets give a try!
Code: Select all
{
"browserName": "chrome",
"chromeOptions": {
"args": ["--headless"]
}
}
-
- Posts: 3
- Joined: Mon Apr 03, 2023 3:21 pm
Re: Selenium Webdriver integration
Thank you csaszi89, surely it is better now with your suggestion.
Nevertheless this was not the problem, the same error continues...
I've tried without capabilities, and the error is the same...
Nevertheless this was not the problem, the same error continues...
I've tried without capabilities, and the error is the same...
-
- Posts: 3
- Joined: Mon Apr 03, 2023 3:21 pm
Re: Selenium Webdriver integration
I've started the project in ranorex all over again, following an official youtube video with an example, and I managed to run my project using the selenium webdriver standalone, in headless mode.
Thanks!
Thanks!