Headless execution


#1

Hi!

I have a test case where I sign in with one account and in the same test sign in with a different account in incognito mode. I saved current tab index in global variable and change the focus with ‘Switch to window index’. It works fine, but in headless execution it says ‘calltest FAILED because (of) Unable to switch to window with index: ‘1’ (Root cause: Cannot find window with index: ‘1’)’

Do you know a solution?
THX


#2

I am having the same problem but with click. I am new to attempting to use headless mode but it seems alot of the functions that work in normal execution seem to fail in headless. I do not have a solution but I would be interested to hear one. In my scenario I am attempting to click an option from a dropdown menu. Both the click of the menu and the selection of the option fail in headless but work in normal.