Selenium Webdriver integration

Ask general questions here.
ricardo.maduro
Posts: 3
Joined: Mon Apr 03, 2023 3:21 pm

Selenium Webdriver integration

Post by ricardo.maduro » Mon Apr 03, 2023 5:27 pm

ranorex1.png
Hi!

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.

csaszi89
Posts: 42
Joined: Mon Jan 17, 2022 12:10 pm

Re: Selenium Webdriver integration

Post by csaszi89 » Tue Apr 04, 2023 11:59 am

Hi,
the following json is generated by GPT4, lets give a try!

Code: Select all

{
      "browserName": "chrome",
      "chromeOptions": {
        "args": ["--headless"]
      }
}
I am not a json guru, but seems u are missing the '--' chars before 'headless' arg.

ricardo.maduro
Posts: 3
Joined: Mon Apr 03, 2023 3:21 pm

Re: Selenium Webdriver integration

Post by ricardo.maduro » Tue Apr 04, 2023 2:07 pm

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...

ricardo.maduro
Posts: 3
Joined: Mon Apr 03, 2023 3:21 pm

Re: Selenium Webdriver integration

Post by ricardo.maduro » Thu Apr 06, 2023 10:05 am

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!