eficode / robotframework-imagehorizonlibrary

Cross-platform Robot Framework library for GUI automation based on image recognition
MIT License
80 stars 28 forks source link

Problem trying to execute atests #37

Closed hernandik closed 4 years ago

hernandik commented 5 years ago

I tried to execute atest windows_tests.robot, but I keep getting

[ ERROR ] Error in file 'C:\Users\User\Desktop\robotframework-imagehorizonlibrary\tests\atest\windows_tests.robot': Importing test library 'ImageHorizo nLibrary' failed: SyntaxError: 'return' with argument inside generator (init.py, line 168) Traceback (most recent call last): File "c:\python27\lib\site-packages\ImageHorizonLibrary__init.py", line 8, in import pyautogui as ag File "c:\python27\lib\site-packages\pyautogui\init__.py", line 84, in import pyscreeze PYTHONPATH:

hernandik commented 5 years ago

I found the solution to this problem. Running outside robot, the error message show that the problem is in the PyScreeze==0.1.20 python lib. Downgrading to 0.1.19 the problem does not happen. Is possible that the lib pyautogui==0.9.42 should be downgraded too.

--

matejc commented 4 years ago

Tests have been rewritten, please track this PR: https://github.com/eficode/robotframework-imagehorizonlibrary/pull/46

Tattoo commented 4 years ago

Closing this issue since a) dependencies will be updated in the next release, b) this is pyscreeze issue, not IHL