Importing SeleniumLibraray with seleniumTestability Plugin is failing due to a Phantomjs issue

382 views
Skip to first unread message

sivadas j

unread,
Apr 28, 2021, 6:22:52 AM4/28/21
to robotframework-users
Trying to import seleniumLibrary with seleniumTestabilty Plugin is failing due to the error 
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'

Any help is appreciated. Thank you
error.png

Tatu Aalto

unread,
Apr 28, 2021, 6:36:26 AM4/28/21
to siva...@gmail.com, robotframework-users
Hi

I would assume that you are using Selenium 4 which does not anymore have PhantomJS browser (also few other deprecated have been removed.) This looks like a bug in the plugin side, which is not that hard to fix. Just removing browsers/lines, from https://github.com/rasjani/robotframework-seleniumtestability/blob/master/src/SeleniumTestability/plugin.py#L135-L153, which are not anymore supported by Selenium should do the trick.

-Tatu

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/robotframework-users/eafe4350-6f69-4933-8d41-c4c466c74e1dn%40googlegroups.com.

Tatu Aalto

unread,
Apr 28, 2021, 7:21:14 AM4/28/21
to sivadas j, robotframework-users
Hi

Because that worked, it would be good idea to create PR to fix the problem in original repository

-Tatu

On Wed, 28 Apr 2021 at 14:05, sivadas j <siva...@gmail.com> wrote:
Thanks.
Looks good now👍
Reply all
Reply to author
Forward
0 new messages