I am using robotframework to perform web automation using IE11 and seleniumlibrary. It runs on windows 10 workstations. I use IE driver 3.14.0 32-bit as it allows to run scripts when screen is locked.
I am getting lot of Invalid selector exceptions with reason [object Error] which results in tests to fail. The selectors work well sometimes and fail after some time. Is it something with the library versions? The driver exists in the project root folder and all required IE settings are available.
Packages used:
- selenium 3.141.0
- robotframework 3.2.1
- rf-seleniumlibrary 4.4.0
I am providing the elements as variables to robot through a file. eg: home='''//a[@href="http://example.com/example/example?abc=Home"]'''
Sample error:
InvalidSelectorException: Message: Unable to locate an element with the xpath expression //a[@href="http://example.com/example/example?abc=Home"] because of the following error:
[object Error]
get element count
keyword in seleniumlibrary, as per doc it is supposed to return an integer. So if the element is not found it should return 0. But sometimes, it gives me [object error] and fails. when i re-run the test , it works fine. I am not sure if this is something with IE.