When running on headless mode, our website redirects us to authentication page first, which works fine.
After authentication and when we're on the website for testing, it begins to fail on this line:
aqObject.CheckProperty(page.contentDocument.documentElement, "innerText", cmpContains, "Table Types")
saying RuntimeError: Type mismatch.
The following line fails with "You are trying to call the "Click" method or property of an object that does not exist."
page.sideBar.FindChild("Id", VarToStr(featureNum)).Click()
It also prompts me with:
"The NameMapping.Sys.browser.pagePivot2.sideBar object
can be found faster if you make //div[contains(@class, 'sidebar-menu-container')] the first selector in its selector list."
(This is already the first and the only selector in list, and clicking on the 'Improve Performance' only adds an empty selector before this one.)
And when I tried to click on a mapped button, it shows:
For which the "New Selectors" it's suggesting is wrong.
On headed browsers the tests execute fine without any problem.