# Announcing the v6.1.0 release of Selenium Library

**URL:** <https://forum.robotframework.org/t/announcing-the-v6-1-0-release-of-selenium-library/5638>\
**Category:** SeleniumLibrary\
**Created:** [3 May 2023 14:52 UTC](https://forum.robotframework.org/t/announcing-the-v6-1-0-release-of-selenium-library/5638 "2023-05-03T14:52:08Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![EdManlove](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/edmanlove/32/1002_2.png) [@EdManlove](https://forum.robotframework.org/u/EdManlove)\
**Post date:** [3 May 2023 14:52 UTC](https://forum.robotframework.org/t/announcing-the-v6-1-0-release-of-selenium-library/5638/1 "2023-05-03T14:52:08Z")

</div>

:robot: Announcing the v6.1.0 release of Selenium Library !!!

SeleniumLibrary 6.1.0 is a new release with some enhancements around timeouts, broadening edge support and removing deprecated Opera support, and some bug fixes. Major enhancements include [the ability to set the Page Load Timeout](https://github.com/robotframework/SeleniumLibrary/blob/master/docs/SeleniumLibrary-6.1.0.rst#set-page-load-timeout) and [set the duration of mouse movements within Action Chains](https://github.com/robotframework/SeleniumLibrary/blob/master/docs/SeleniumLibrary-6.1.0.rst#duration-of-mouse-movements-within-action-chains), [some clarification within the timeout documentation](https://github.com/robotframework/SeleniumLibrary/blob/master/docs/SeleniumLibrary-6.1.0.rst#timeout-documentation-updated), and [enhanced Edge webdriver support under Linux](https://github.com/robotframework/SeleniumLibrary/blob/master/docs/SeleniumLibrary-6.1.0.rst#edge-webdriver-under-linux). For all the changes check out the [release notes for v6.1.0](https://github.com/robotframework/SeleniumLibrary/blob/master/docs/SeleniumLibrary-6.1.0.rst).

I want to thank the following people who have helped get this release out: [@0xLeon](https://github.com/0xLeon), [@robinmatz](https://github.com/robinmatz), [@johnpp143](https://github.com/johnpp143), [Dave Martin](https://github.com/sparkymartin), [@tminakov](https://github.com/tminakov), [Pekka Klärck](https://github.com/pekkaklarck), [@remontees](https://github.com/remontees), [@dotlambda](https://github.com/dotlambda), [@DetachHead](https://github.com/DetachHead), Jani Mikkonen, Tatu Aalto, Lassi Heikkinen, Lisa Crispin, Yuri Verweij, and Robin Matz

One can install the latest version with

```python
pip install --upgrade robotframework-seleniumlibrary

```

or use

```python
pip install robotframework-seleniumlibrary==6.1.0

```

to specify installing the 6.1.0 version.

---

<div class="post-metadata">

**Author:** ![gordongilbert](https://avatars.discourse-cdn.com/v4/letter/g/9de0a6/32.png) [@gordongilbert](https://forum.robotframework.org/u/gordongilbert)\
**Post date:** [7 May 2023 03:54 UTC](https://forum.robotframework.org/t/announcing-the-v6-1-0-release-of-selenium-library/5638/2 "2023-05-07T03:54:59Z")

</div>

I followed “How To Setup Robot Framework For Test Automation On Windows” by  
Rommel Malqued ·

> **[How To Setup Robot Framework For Test Automation On Windows](https://medium.com/geekculture/how-to-setup-robot-framework-for-test-automation-on-windows-2a9cc0da0763)**
>
> This article provides a step-by-step instruction on how to setup robot framework on your local machine. This is intended for Windows user…

I create a robot file. E.g. Login.robot he describes:  
\*\*\* Settings \*\*\*  
Library SeleniumLibrary

\*\*\* Test Cases \*\*\*  
Login  
Open Browser [https://www.saucedemo.com/](https://www.saucedemo.com/) chrome  
Maximize Browser Window  
Wait Until Element Is Visible id:user-name  
Input Text id:user-name standard\_user  
Input Password id:password secret\_sauce  
Click Element id:login-button  
Sleep 5s  
Close Browser

Ran the above Login.robot in  
PyCharm 2023.1 (Community Edition)  
Build #PC-231.8109.197, built on March 29, 2023  
Runtime version: 17.0.6+10-b829.5 amd64  
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.  
Windows 11.0  
GC: G1 Young Generation, G1 Old Generation  
Memory: 2048M  
Cores: 20  
Non-Bundled Plugins:  
robocorp.lsp.intellij (1.10.1)

I get the following error

Importing library ‘SeleniumLibrary’ failed

This is the versions I have installed

robotframework-seleniumlibrary==6.1.0  
selenium==4.9.0

---

<div class="post-metadata">

**Author:** ![gordongilbert](https://avatars.discourse-cdn.com/v4/letter/g/9de0a6/32.png) [@gordongilbert](https://forum.robotframework.org/u/gordongilbert)\
**Post date:** [7 May 2023 07:40 UTC](https://forum.robotframework.org/t/announcing-the-v6-1-0-release-of-selenium-library/5638/3 "2023-05-07T07:40:58Z")

</div>

requirements.txt file for project  
Appium-Python-Client==2.9.0  
async-generator==1.10  
attrs==23.1.0  
certifi==2022.12.7  
cffi==1.15.1  
charset-normalizer==3.1.0  
decorator==5.1.1  
docutils==0.19  
exceptiongroup==1.1.1  
h11==0.14.0  
idna==3.4  
kitchen==1.2.6  
natsort==8.3.1  
outcome==1.2.0  
pycparser==2.21  
PySocks==1.7.1  
requests==2.30.0  
robotframework==6.0.2  
robotframework-appiumlibrary==2.0.0  
robotframework-pabot==2.15.0  
robotframework-pythonlibcore==4.1.2  
robotframework-requests==0.9.4  
robotframework-seleniumlibrary==6.1.0  
robotframework-stacktrace==0.4.1  
selenium==4.9.0  
six==1.16.0  
sniffio==1.3.0  
sortedcontainers==2.4.0  
trio==0.22.0  
trio-websocket==0.10.2  
urllib3==1.26.15  
wsproto==1.2.0

---

<div class="post-metadata">

**Author:** ![EdManlove](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/edmanlove/32/1002_2.png) [@EdManlove](https://forum.robotframework.org/u/EdManlove)\
**Post date:** [7 May 2023 11:10 UTC](https://forum.robotframework.org/t/announcing-the-v6-1-0-release-of-selenium-library/5638/4 "2023-05-07T11:10:47Z")

</div>

@gordongilbert There is a bit of project configuration with PyCharm and the necessary configuration depends upon a few factors. Are you executing the script via the PyCharm run menu/button? What paramaters are set under the run configuration setup? Are you running using a virtualenv (which is separate from the virtual machine)?

One helpful hint to understanding to how you have configured and how PyCharm is running it is to look around that error message `Importing library ‘SeleniumLibrary’ failed`. There should be a listing of directories - this being the PYTHONPATH - that the robot script is looking in. If the path to the Python for which you have listed here the packages installed is not there then you need to configure the Python interpreter (what other might call the Python executable) either under the run configurations or under PyCharm \> Preferences \> \<Project Settings\> .

---

<div class="post-metadata">

**Author:** ![gordongilbert](https://avatars.discourse-cdn.com/v4/letter/g/9de0a6/32.png) [@gordongilbert](https://forum.robotframework.org/u/gordongilbert)\
**Post date:** [9 May 2023 15:18 UTC](https://forum.robotframework.org/t/announcing-the-v6-1-0-release-of-selenium-library/5638/5 "2023-05-09T15:18:43Z")

</div>

I was running it from the run icon inside of my Login.robot script line 4 “\*\*\* Test Cases \*\*\*”  
\*\*\* Settings \*\*\*  
Library SeleniumLibrary

\*\*\* Test Cases \*\*\*  
Login  
Open Browser [https://www.saucedemo.com/](https://www.saucedemo.com/) chrome  
Maximize Browser Window  
Wait Until Element Is Visible id:user-name  
Input Text id:user-name standard\_user  
Input Password id:password secret\_sauce  
Click Element id:login-button  
Sleep 5s  
Close Browser

Today I ran it and it passes. I don’t understand what changed to make it work.

---

<div class="post-metadata">

**Author:** ![EdManlove](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/edmanlove/32/1002_2.png) [@EdManlove](https://forum.robotframework.org/u/EdManlove)\
**Post date:** [10 May 2023 13:06 UTC](https://forum.robotframework.org/t/announcing-the-v6-1-0-release-of-selenium-library/5638/6 "2023-05-10T13:06:51Z")

</div>

Glad to hear it is now working. A few of debugging tips that might be good to keep in mind in case you have issue in the future …

- Pay attention to error messages, especially those which occur at the very beginning of an execution. Robot can display what we call non-fatal errors. A library failing to import is one such one. You might execute a test and the output will scroll by fairly quickly. So these initial errors might scroll by without notice and the script will continue to execute.
- PyCharm has settings which will affect the execution environment. It is good to understand how the run configurations (menu item Run \> Edit Configurations…) and project settings (PyCharm \> Preferences \> \<Project Settings\>) work.

---

<div class="post-metadata">

**Author:** ![gordongilbert](https://avatars.discourse-cdn.com/v4/letter/g/9de0a6/32.png) [@gordongilbert](https://forum.robotframework.org/u/gordongilbert)\
**Post date:** [19 May 2023 17:46 UTC](https://forum.robotframework.org/t/announcing-the-v6-1-0-release-of-selenium-library/5638/7 "2023-05-19T17:46:11Z")

</div>

I feel like I am going in circles with this.  
Importing library ‘SerialLibrary’ works for  
C:\Users\gordo\PycharmProjects\RobotframeworkPi3B\venv\Login.robot

But not for a different file (C:\Users\gordo\PycharmProjects\RobotframeworkPi3B\venv\Boot.robot) in the same project with File\>Settings\>Languages & Frameworks\>Robot Framework (Project)  
Language Server Python as C:\Users\gordo\AppData\Local\Programs\Python\Python310\python.exe  
PYTHONPATH as [“C:/Users/gordo/PycharmProjects/RobotframeworkPi3B”].

I don’t see PyCharm \> Preferences \> with my version of PyCharm.

# Started: C:\Users\gordo\PycharmProjects\RobotframeworkPi3B\venv\Boot.robot [ERROR] Error in file ‘C:\Users\gordo\PycharmProjects\RobotframeworkPi3B\venv\Boot.robot’ on line 2: Importing library ‘SerialLibrary’ failed: ModuleNotFoundError: No module named ‘SerialLibrary’ Traceback (most recent call last): None PYTHONPATH: C:\Users\gordo\AppData\Roaming\JetBrains\PyCharmCE2023.1\plugins\robotframework-intellij\lib\robotframework\_debug\_adapter C:\Users\gordo\PycharmProjects\RobotframeworkPi3B C:\Users\gordo\AppData\Roaming\JetBrains\PyCharmCE2023.1\plugins\robotframework-intellij\lib C:\Users\gordo\AppData\Roaming\JetBrains\PyCharmCE2023.1\plugins\robotframework-intellij\lib\robotframework\_ls\vendored C:\Users\gordo\AppData\Local\Programs\Python\Python310\python310.zip C:\Users\gordo\AppData\Local\Programs\Python\Python310\DLLs C:\Users\gordo\AppData\Local\Programs\Python\Python310\lib C:\Users\gordo\AppData\Local\Programs\Python\Python310 C:\Users\gordo\AppData\Local\Programs\Python\Python310\lib\site-packages [ERROR] Error in file ‘C:\Users\gordo\PycharmProjects\RobotframeworkPi3B\venv\Boot.robot’ on line 2: Importing library ‘SerialLibrary’ failed: ModuleNotFoundError: No module named ‘SerialLibrary’ Traceback (most recent call last): None PYTHONPATH: C:\Users\gordo\AppData\Roaming\JetBrains\PyCharmCE2023.1\plugins\robotframework-intellij\lib\robotframework\_debug\_adapter C:\Users\gordo\PycharmProjects\RobotframeworkPi3B C:\Users\gordo\AppData\Roaming\JetBrains\PyCharmCE2023.1\plugins\robotframework-intellij\lib C:\Users\gordo\AppData\Roaming\JetBrains\PyCharmCE2023.1\plugins\robotframework-intellij\lib\robotframework\_ls\vendored C:\Users\gordo\AppData\Local\Programs\Python\Python310\python310.zip C:\Users\gordo\AppData\Local\Programs\Python\Python310\DLLs C:\Users\gordo\AppData\Local\Programs\Python\Python310\lib C:\Users\gordo\AppData\Local\Programs\Python\Python310 C:\Users\gordo\AppData\Local\Programs\Python\Python310\lib\site-packages

# Boot

## System Boots | FAIL | Parent suite setup failed: No keyword with name ‘Add Port’ found.

## Verify RPI IP Address | FAIL | Parent suite setup failed: No keyword with name ‘Add Port’ found.

Boot | FAIL |  
Suite setup failed:  
No keyword with name ‘Add Port’ found.

Also suite teardown failed:  
No keyword with name ‘Delete All Ports’ found.

# 2 tests, 0 passed, 2 failed

Output: C:\Users\gordo\PycharmProjects\RobotframeworkPi3B\log\output.xml  
[FAIL (+0.01s)] No keyword with name ‘Add Port’ found.  
[FAIL] No keyword with name ‘Delete All Ports’ found.  
Log: C:\Users\gordo\PycharmProjects\RobotframeworkPi3B\log\log.html  
Report: C:\Users\gordo\PycharmProjects\RobotframeworkPi3B\log\report.html

Robot Run Terminated (code: 0)

---

<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:** [20 May 2023 00:45 UTC](https://forum.robotframework.org/t/announcing-the-v6-1-0-release-of-selenium-library/5638/8 "2023-05-20T00:45:55Z")

</div>

Hi Gordon,

This thread is about **Selenium** Library not **Serial** Library, so you might not get much help here. Try posting a new thread in the main forum.

Also as a tip put the log text between two lines that contain only 3 backticks (`), as it will make it easier for people to read.  
```  
  
```

Dave.

---

<div class="post-metadata">

**Author:** ![EdManlove](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/edmanlove/32/1002_2.png) [@EdManlove](https://forum.robotframework.org/u/EdManlove)\
**Post date:** [20 May 2023 02:47 UTC](https://forum.robotframework.org/t/announcing-the-v6-1-0-release-of-selenium-library/5638/9 "2023-05-20T02:47:08Z")

</div>

@gordongilbert It is odd that it works for one but not the other. Checking I see that PyCharm under Windows you find the the project settins under File \> Settings

Also a few steps just to verify/check out your setup

First open a command prompt under Windows and type

```python
python -c "import os, sys; print(os.path.dirname(sys.executable))"

```

This will print out where Python is and I would expect it to be `C:\Users\gordo\AppData\Local\Programs\Python\Python310`

Next start the python interactive prompt by typing at the command prompt `python` and press enter. Then at the Python prompt type `import SerialLibrary`. I would expect it to come right back with another Python interactive promt `>>>`. But if there are errors then those should be resolved. Oddly though again if it works for one robot file and not the other … well I wouldn’t expect any errors in this test.

---

<div class="post-metadata">

**Author:** ![gordongilbert](https://avatars.discourse-cdn.com/v4/letter/g/9de0a6/32.png) [@gordongilbert](https://forum.robotframework.org/u/gordongilbert)\
**Post date:** [22 May 2023 20:37 UTC](https://forum.robotframework.org/t/announcing-the-v6-1-0-release-of-selenium-library/5638/10 "2023-05-22T20:37:08Z")

</div>

Moved to [Importing library 'SerialLibrary' failed](https://forum.robotframework.org/t/importing-library-seriallibrary-failed/5725)
