Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrading parts of RobotLab #70

Closed
Lauri2000 opened this issue Apr 27, 2021 · 6 comments
Closed

Upgrading parts of RobotLab #70

Lauri2000 opened this issue Apr 27, 2021 · 6 comments

Comments

@Lauri2000
Copy link

Hi
Can I upgrade Robot Framework version to the newest one? Can I also update the Selenium library to the newest one?
I tried to use pip and update Robot Framework but the functionality was not there anymore.

Also is it possible to install new functionality to RobotLab? QWeb seems quite interesting and it would have some nice features for browser testing.
Br
-Lauri

@datakurre
Copy link
Contributor

datakurre commented Apr 27, 2021

@Lauri2000 Yes, since the last week, I'd expect the following to work:

pip install -U robotkernel robotframework robotframework-seleniumlibrary

The binder demo has already been updated to the latest RF bersions: https://mybinder.org/v2/gh/robots-from-jupyter/robotkernel/master?urlpath=lab/tree/starter/robotkernel-quickstart

@bollwyvl Would you think, you'd find time to help us to make RF 4.0 maintenance release for RobotLab sometime in the near future? I assume that the release pipeline requires changes due to new major JupyterLab -versions. Lauri is using RobotLab for teaching purposes, so supporting them should be close to our ideals.

@datakurre
Copy link
Contributor

From a Python notebook, pip may be called with

!pip install -U robotkernel robotframework robotframework-seleniumlibrary

@Lauri2000 Have you already tried out

!pip install QWeb

and using the library. It does have quite heavy dependencies, but if those install without error, I see no reason why it would not work. 🤔

@datakurre
Copy link
Contributor

@Lauri2000 I've now tried both on a clean Windows 7 virtual machine (yes, it is old) and the latest (also old) RobotLab installation.

Upgrading Robot Framework should just work with running pip from Python notebook:

!pip install -U robotkernel robotframework robotframework-seleniumlibrary

Installing QWeb with pip worked eventually, but for some reason, I had to run the command twice (the first one reported issue when trying to update RobotLab [Conda] installed Pillow with a new version)

!pip install QWeb

Then I was able to successfully run the example robot provided by QWeb instructions:

*** Settings ***
Library    QWeb     # Import library

*** Test Cases ***
Basic interaction
    Open Browser         https://qentinelqi.github.io/shop      firefox   # Open chrome and goto given url
    VerifyText          The animal friendly clothing company    # Assert heading text
    ClickText           Scar the Lion   # Click link text
    ClickText           Add to cart     # Click *button* with specific text
    DropDown            Size            Large  # Select value (Large) from dropdown (Size)

But I had to run the test a couple of times, because the first run after a clean installation was harmed by Python permission dialogs.

@datakurre
Copy link
Contributor

datakurre commented Apr 27, 2021

One more note: QWeb is not yet compatible with Robot Framework 4, so installing QWeb did downgrade Robot Framework back to 3.2.x.

@Lauri2000
Copy link
Author

Same for me but now it works!
Thanks a lot for this!

@bollwyvl
Copy link
Collaborator

woof, yeah, I couldn't in good faith ship qweb (or robot browser) in a tool meant to be field serviceable and cross-platform, given the number of == pins, and have run into packaging some of those very dependencies. But I'm definitely on-board for firing up a RobotLab 2021.04 (or maybe 05 😊 ). Let's focus that discussion on #66.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants