How to start headless?

Ask general questions here.
boris0dev
Posts: 17
Joined: Fri Nov 09, 2018 10:28 am

How to start headless?

Post by boris0dev » Fri Nov 30, 2018 2:51 pm

I've built a web test suite which runs fine in Chrome (directly driven by Ranorex = WebDriver not used)

So I wanted to execute the test suite in the headless mode.

Therefore I set as arguments when opening the browser "--headless --disable-gpu"
open-chrome.png
When executing the test it seems to run, meaning the "open browser" command is executed without any errors but in the next action I'm looking for an element on that page (an input field) and filling in a string.
Without headless no problem, but with headless I get an error that the element wan't found:
element-not-found.png
How can I solve this?

Thanks for any help / advice
You do not have the required permissions to view the files attached to this post.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 6037
Joined: Mon Aug 13, 2012 8:54 am
Location: Zilina, Slovakia

Re: How to start headless?

Post by odklizec » Sat Dec 01, 2018 10:38 am

Hi,

I’m afraid, testing in headless mode is only supported via webdriver automation. Ranorex as such requires realized desktop.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

boris0dev
Posts: 17
Joined: Fri Nov 09, 2018 10:28 am

Re: How to start headless?

Post by boris0dev » Mon Dec 03, 2018 10:20 am

Thanks odklizec