Getting No Keyword with name 'Open Application' found.
I am using Sikuli+robotframework and currently I am unable to execute this small piece of code.
-
Details OS: Windows 7 python: 2.7.14 pip: 19.0.3 robotframework: 3.1.1 robotframework-SikuliLibrary: 1.0.2 setuptools: 28.8.0
-
Error:
Notepad :: Sikuli Demo
Open Notepad | FAIL | No keyword with name 'Open Application' found.
- Build jar file I also tried to build the jar file. Now I have total of 3 SikuliLibrary.jar file in c:\Python27 But I am still stuck with same error when I run the Test.
. . . SikuliLibrary.sikuli: module references file creating 'dist\robotframework_SikuliLibrary-1.0.2-py2.7.egg' and adding 'build\bdist.win32\egg' to it removing 'build\bdist.win32\egg' (and everything under it) Processing robotframework_SikuliLibrary-1.0.2-py2.7.egg removing 'c:\python27\lib\site-packages\robotframework_SikuliLibrary-1.0.2-py2.7.egg' (and everything under it) creating c:\python27\lib\site-packages\robotframework_SikuliLibrary-1.0.2-py2.7.egg Extracting robotframework_SikuliLibrary-1.0.2-py2.7.egg to c:\python27\lib\site-packages robotframework-SikuliLibrary 1.0.2 is already the active version in easy-install.pth
Installed c:\python27\lib\site-packages\robotframework_sikulilibrary-1.0.2-py2.7.egg Processing dependencies for robotframework-SikuliLibrary==1.0.2 Finished processing dependencies for robotframework-SikuliLibrary==1.0.2_
- Test.robot *** Settings *** Documentation Sikuli Demo Library SikuliLibrary
*** Variables *** ${PATH_EXE} = C:\windows\system32\notepad.exe
*** Test Cases *** Open Notepad Open Notepad
*** Keywords *** Open Notepad Open Application ${PATH_EXE} Double Click notepad_title.png
I was able to run some selenium code.
@rainmanwy Can you help me find out what is missing in the prerequisites? Thanks in advance.
@pb9288 , could you upgrade this lib from pypi. "Open Application" is added in recent release.
Thanks for quick response. I see 1.0.4 version is the latest available. When I try to get the latest, I get an error.
Could not find a version that satisfies the requirement robotframework-SikuliLibrary==1.0.4 (from versions: 0.1.4-linux, 0.1.5-linux, 0.1.4, 0.1.5, 1.0.0, 1.0.1, 1.0.2) No matching distribution found for robotframework-SikuliLibrary==1.0.4
Are there any other dependencies?
Sorry, i noticed that 1.0.4 is only for py3, as i could not access sikulix maven repo(sonatype), have you tried to package it yourself?
@pb9288 , you may have a try 1.0.5
I am using the Open Application command and providing path to Internet explorer but whatever I provide (even if gibberish) it only opens the file explorer on windows. Have lost a few hours to this no closer to solving. Any help would be appreciated.
*** Settings ***
Library SikuliLibrary mode=New
Suite Setup Run Keywords Start Sikuli Process
Suite Teardown Run Keywords Close Application ${APP_PATH} AND Stop Remote Server
*** Test Cases ***
Execute Sikuli Script
Open EBS
Navigate
*** Variables ***
${APP_PATH} "C:\Program Files\Internet Explorer\iexplore.exe"
*** Keywords ***
Open EBS
Open Application ${APP_PATH}
Sleep 5
Type With Modifiers L CTRL
Input Text ${EMPTY} https://somewebsite/OA_HTML/OA.jsp?OAFunc=OAHOMEPAGE#
Navigate
Wait Until Screen Contain "ToFind.png" 10
Click "Image.png"
I am also having issues with Type With Modifiers - just doesn't do anything. The Input Text works though. Just so you know this isn't a selenium test, it goes onto to open Java applets which are not supported by Selenium.