joel-oliveira / EyesLibrary

Robot Framework Visual Verification Test Library using Applitools Eyes
Apache License 2.0
3 stars 6 forks source link

AttributeError: 'SeleniumLibrary' object has no attribute '_current_browser' #5

Open MatthewChickoree opened 3 years ago

MatthewChickoree commented 3 years ago

Robot Framework is able to execute inside in the Docker container | FAIL | AttributeError: 'SeleniumLibrary' object has no attribute '_current_browser'

Smoke Test | FAIL | 1 critical test, 0 passed, 1 failed 1 test total, 0 passed, 1 failed

Output: /usr/src/project/output.xml Log: /usr/src/project/log.html Report: /usr/src/project/report.html pip list Package Version


Appium-Python-Client 1.0.2 certifi 2020.12.5 chardet 3.0.4 decorator 4.4.2 docutils 0.16 eyes-selenium 3.16.7 idna 2.7 kitchen 1.2.6 Pillow 6.2.2 pip 20.3.1 requests 2.25.0 robotframework 3.2.2 robotframework-appiumlibrary 1.5.0.7 robotframework-eyeslibrary 2.1 robotframework-pythonlibcore 2.1.0 robotframework-seleniumlibrary 4.5.0 selenium 3.141.0 setuptools 51.0.0 six 1.15.0 tinycss2 0.6.1 urllib3 1.24.3 webencodings 0.5.1 wheel 0.36.1

AUT.zip

zubia-qa commented 3 years ago

I am also having the exact same issue. @MatthewChickoree Did you find a solution for this?

MatthewChickoree commented 3 years ago

The only solution was to use the specified versions I required:

RUN pip install robotframework==3.1.1 RUN pip install eyes-selenium==3.16.2 RUN pip install robotframework-seleniumlibrary==5.0.0b1 RUN pip install robotframework-eyeslibrary==2.1

On Wed, 14 Jul 2021, 3:40 pm zubia-qa, @.***> wrote:

I am also having the exact same issue. @MatthewChickoree https://github.com/MatthewChickoree Did you find a solution for this?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/joel-oliveira/EyesLibrary/issues/5#issuecomment-880158520, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABIFRH4OGE5UOWWB2EDZM63TXXR3VANCNFSM4UTX6GQQ .

zubia-qa commented 3 years ago

Thanks @MatthewChickoree . However, even after installing the specified versions above, I am still getting the error: AttributeError: 'SeleniumLibrary' object has no attribute '_current_browser' There might be some other dependencies or Python version that may be an issue. Will continue to investigate.

MatthewChickoree commented 3 years ago

I'm sorry.

The only thing that helped was to use the minimum versions specified by the eyes library.

I think I used python 3 ... But not sure which version.

If you want, I have a docker image here: docker pull chickoreeevolve/aut-env

On Thu, 15 Jul 2021, 10:12 am zubia-qa, @.***> wrote:

Thanks @MatthewChickoree https://github.com/MatthewChickoree . However, even after installing the specified versions above, I am still getting the error: AttributeError: 'SeleniumLibrary' object has no attribute '_current_browser' There might be some other dependencies or Python version that may be an issue. Will continue to investigate.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/joel-oliveira/EyesLibrary/issues/5#issuecomment-880728308, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABIFRHYP6AAV53TLDDTENNDTX3UDRANCNFSM4UTX6GQQ .

zubia-qa commented 3 years ago

Thanks. I am running Python 3.7.7. I will have a look again at the minimum versions specified in the library. If it worked for you, there is hope for me too :) If not, will try the docker image, but my computer gets really slow using docker so will try other routes first. Thanks again, really appreciate it.

jward-magento commented 3 years ago

I have gotten it to run in docker w/ Python 3.9.6: RUN apt-get update && apt-get install -y xvfb git wget curl vim RUN pip install --upgrade pip RUN pip install awscli RUN pip install urllib3==1.25.10 RUN pip install requests==2.23.0 RUN pip install robotframework RUN pip install robotframework-xvfb RUN pip install robotframework-pabot RUN pip install robotframework-faker RUN pip install robotframework-requests RUN pip install robotframework-zoomba RUN pip install pyjwt RUN pip install xvfbwrapper RUN pip install phonenumbers RUN pip install robotframework-seleniumlibrary==5.1.3 RUN pip install selenium==3.141.0

but I am running from v3 of the EyesLibrary. The owners need to promote it to pypi, it would make life a lot simpler.
Otherwise Applitools now has an SDK for Robot Framework.

MatthewChickoree commented 3 years ago

Nice.

Yes I agree, it needs to be updated.

On Mon, 13 Sep 2021, 10:02 am jward-magento, @.***> wrote:

I have gotten it to run in docker w/ Python 3.9.6: RUN apt-get update && apt-get install -y xvfb git wget curl vim RUN pip install --upgrade pip RUN pip install awscli RUN pip install urllib3==1.25.10 RUN pip install requests==2.23.0 RUN pip install robotframework RUN pip install robotframework-xvfb RUN pip install robotframework-pabot RUN pip install robotframework-faker RUN pip install robotframework-requests RUN pip install robotframework-zoomba RUN pip install pyjwt RUN pip install xvfbwrapper RUN pip install phonenumbers RUN pip install robotframework-seleniumlibrary==5.1.3 RUN pip install selenium==3.141.0

but I am running from v3 of the EyesLibrary. The owners need to promote it to pypi, it would make life a lot simpler. Otherwise Applitools now has an SDK for Robot Framework.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/joel-oliveira/EyesLibrary/issues/5#issuecomment-918223668, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABIFRHY5UTBKO5ZD4HZEHO3UBYAAJANCNFSM4UTX6GQQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.