Test fails in headless mode

Hello all,
I have some tests that run correctly in default mode for browser but it fails when running in headless mode

Hi @Abdullah92

Youve not mentioned what library you are using nor gave any indication on the exception your getting, plus youve created your post under robotframework category rather than browser or selenium, so theres no knowing which library.

The solution to your problem could be as simple as slowing down your execution with assertions, …ie if browserlibrary Wait For Elements State and if seleniumlibrary Wait Until Element Is Visible but there are many keywords you can use.

But ideally, for any help to be given, knowing the library and the exception will help with the answers you will get from anyone.

Thanks.

2 Likes

Thanks daryl,
I’m using selenium library and already appling waits techniques.

1 Like

Does that mean your problem is solved? or could you provide the exception in question? It would also be worth seeing the logic around where the exception is being thrown (so, if possible, just a small code snippet)
Thanks

1 Like

What keyword fails and with what browser ?

1 Like