# PabotSharedLibrary Selenium2Library ISSUE

**URL:** <https://forum.robotframework.org/t/pabotsharedlibrary-selenium2library-issue/835>\
**Category:** Pabot\
**Created:** [15 October 2020 13:12 UTC](https://forum.robotframework.org/t/pabotsharedlibrary-selenium2library-issue/835 "2020-10-15T13:12:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ivan](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/ivan/32/442_2.png) [@Ivan](https://forum.robotframework.org/u/Ivan)\
**Post date:** [15 October 2020 13:12 UTC](https://forum.robotframework.org/t/pabotsharedlibrary-selenium2library-issue/835/1 "2020-10-15T13:12:25Z")

</div>

Hello.

I’m trying to use the Pabotsharedlibrary by wrapping Selenium2Library in this way:

> Library pabot.SharedLibrary Selenium2Library  
> Library PabotLib  
> Resource …/…/cp\_classic\_keywords/filelocators.robot  
> Resource OpenClassicURL.robot  
> Suite Setup Run Setup Only Once Open Classic URL ${URL}  
> Test Teardown run keyword and ignore error Open Checkpoint In New Tab  
> Suite Teardown Run Teardown Only Once run keyword and ignore error run keywords Checkpoint Logout AND Close All Browsers

When I run this suite with

> pabot --pabotlib --testlevelsplit

Than such error appearing:

> Multiple keywords with name ‘set selenium implicit wait’ found. Give the full name of the keyword you want to use:  
> Selenium2Library.Set Selenium Implicit Wait  
> pabot.SharedLibrary.Set Selenium Implicit Wait

Could you help me to understand why is it happening?

---

<div class="post-metadata">

**Author:** ![Ivan](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/ivan/32/442_2.png) [@Ivan](https://forum.robotframework.org/u/Ivan)\
**Post date:** [15 October 2020 13:19 UTC](https://forum.robotframework.org/t/pabotsharedlibrary-selenium2library-issue/835/2 "2020-10-15T13:19:17Z")

</div>

when I’m trying to force to use the shared library by code

> Set Library Search Order pabot.SharedLibrary

I’m having next error:

> Keyword ‘pabot.SharedLibrary.Wait For Condition’ got positional argument after named arguments.

It’s not happening when I’m using Selenium2Library without pabot.SharedLibrary.

---

<div class="post-metadata">

**Author:** ![mkorpela](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/mkorpela/32/33_2.png) [@mkorpela](https://forum.robotframework.org/u/mkorpela)\
**Post date:** [15 October 2020 14:49 UTC](https://forum.robotframework.org/t/pabotsharedlibrary-selenium2library-issue/835/3 "2020-10-15T14:49:29Z")

</div>

Hi,

Is SeleniumLibrary2 imported anywhere else?  
Also please use SeleniumLibrary and not SeleniumLibrary2. SeleniumLibrary2 is not anymore maintained.

---

<div class="post-metadata">

**Author:** ![Ivan](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/ivan/32/442_2.png) [@Ivan](https://forum.robotframework.org/u/Ivan)\
**Post date:** [15 October 2020 15:22 UTC](https://forum.robotframework.org/t/pabotsharedlibrary-selenium2library-issue/835/4 "2020-10-15T15:22:42Z")

</div>

Thank You for quick response !

So I changed the SeleniumLibrary2 to just SeleniumLibrary. And now I’me getting this error:

> TypeError: wait\_for\_condition() got an unexpected keyword argument ‘return window.document.readyState’

Here is this Wait For Condition call:

> Wait for condition return window.document.readyState==‘complete’ timeout=60s

This error is not happening when I’m not using SharedLibrary.

---

<div class="post-metadata">

**Author:** ![Ivan](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/ivan/32/442_2.png) [@Ivan](https://forum.robotframework.org/u/Ivan)\
**Post date:** [15 October 2020 15:58 UTC](https://forum.robotframework.org/t/pabotsharedlibrary-selenium2library-issue/835/5 "2020-10-15T15:58:48Z")

</div>

Also when I commented the line of code with ‘Wait For Condition’ it’s failed on the next wait:

> ```
> # Wait for condition return window.document.readyState=='complete' timeout=60s
> Wait Until Page Contains Element //span[text()="${Metatab}"] timeout=30s
> 
> ```

The Error:

> 1. TypeError: wait\_until\_page\_contains\_element() got an unexpected keyword argument ‘//span[text()’

It seems like something is wrong with reading the text after ‘=’ symbol…

---

<div class="post-metadata">

**Author:** ![Vandervort](https://avatars.discourse-cdn.com/v4/letter/v/9f8e36/32.png) [@Vandervort](https://forum.robotframework.org/u/Vandervort)\
**Post date:** [24 June 2021 09:11 UTC](https://forum.robotframework.org/t/pabotsharedlibrary-selenium2library-issue/835/7 "2021-06-24T09:11:01Z")

</div>

Thanks for sharing this information. I am facing similar kind of issue

[Vanilla Visa Gift Card Balance](https://www.onevanilla.run/)

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [25 June 2021 01:53 UTC](https://forum.robotframework.org/t/pabotsharedlibrary-selenium2library-issue/835/8 "2021-06-25T01:53:05Z")

</div>

Hi Vandervort,

I suggest you start a new thread and clarify the error you received along with the robot keywords you are using rather than dragging up this old thread. You could link to this thread in your post if you think it’s relevant.

Dave.
