Random error on allocating element when Click Element

Hi, I have an not 100% reproducible issue when try to Click Element

Some details: web page developed with Vue.js
I user element ID to allocate it.
Also I use Wait Until Element Is Visible and Wait Until Element Enabled etc.
Nothing helps to have 100% pass, sometimes it fails due to element click intercepted.
To avoid the error I also try to use
Set Selenium Speed (0.4s) and Set Selenium Implicit Wait (10s) - it helps a little but not 100%.

Could you please suggest a way to avoid ‘element click intercepted’ error?

pip list | grep selenium     
robotframework-selenium2library 3.0.0
robotframework-seleniumlibrary  5.1.3
selenium                        4.0.0

Try SeleniumTestability plugin for SeleniumLibrary.

(consider uninstalling Selenium2Library)

The description SeleniumTestability sounds great.
I installed accordingly documentation, remove selenium2library.
pip list | grep selenium
robotframework-seleniumlibrary 5.1.3
robotframework-seleniumtestability 1.1.0
selenium 4.0.0

[ ERROR ] Error in file ‘/Users/abc/development/project-ui-autotest/Resources/resource.robot’ on line 3: Initializing library ‘SeleniumLibrary’ with arguments [ plugins=SeleniumTestability;True;30 Seconds;True ] failed: Importing test library ‘SeleniumTestability’ failed: AttributeError: type object ‘DesiredCapabilities’ has no attribute ‘PHANTOMJS’
Traceback (most recent call last):
File “/Users/abc/venvs/project-auto/lib/python3.9/site-packages/SeleniumTestability/init.py”, line 2, in
from .plugin import SeleniumTestability
File “/Users/abc/venvs/project-auto/lib/python3.9/site-packages/SeleniumTestability/plugin.py”, line 43, in
class SeleniumTestability(LibraryComponent):
File “/Users/abc/venvs/project-auto/lib/python3.9/site-packages/SeleniumTestability/plugin.py”, line 148, in SeleniumTestability
“phantomjs”: DesiredCapabilities.PHANTOMJS,
PYTHONPATH:
/Users/abc/venvs/project-auto/bin
/Library/Frameworks/Python.framework/Versions/3.9/lib/python39.zip
/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/lib-dynload
/Users/abc/venvs/project-auto/lib/python3.9/site-packages
Tests.Search


Base search works properly | FAIL |
Parent suite setup failed:
No keyword with name ‘Open Browser’ found.


Tests.Search | FAIL |
Suite setup failed:
No keyword with name ‘Open Browser’ found.

Also suite teardown failed:
No keyword with name ‘Close All Browsers’ found.

1 test, 0 passed, 1 failed


Tests | FAIL |
10 tests, 0 passed, 10 failed


I found this thread https://groups.google.com/g/robotframework-users/c/T1peTfTftWM

@HelioGuilherme66
Is there is a way to add plugins=SeleniumTestability without installing PHANTOMJS?

Yes, just go to the source code of SeleniumTestability installed in your machine and remove that browser from the list.

Thanks.
I leave only chrome related lines and it start working.

/Users/abc/venvs/project-auto/lib/python3.9/site-packages/SeleniumTestability/plugin.py

BROWSERS = {
    "googlechrome": DesiredCapabilities.CHROME,
    "gc": DesiredCapabilities.CHROME,
    "chrome": DesiredCapabilities.CHROME,
    "headlesschrome": DesiredCapabilities.CHROME,
}

I steel have an errors with allocating elements

image

Comparing with run without plugin - there is a WARN in console but tests PASS (except one where element intercepted)
image

WARN is because js injections can’t find the browser in some cases?