Question #257941 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/257941
hemalatha posted a new comment:
Hi,
I want to integrate Sikuli and Selenium-python with Eclipse IDE. So i want to
execute the python scipt through Eclipse Python interpretor.
Below are the configuration details that am using.
OS : Win 10 64 bit
Python : 2.7
Jython : 2.7beta3
Selenium : 3.8.0
Browser : Chromedriver
IDE : Eclipse Oxygen
Sikuli : 1.1.1
I am just trying to run below code but am getting below error :
from org.sikuli.script import Pattern, Screen
from selenium.webdriver import chrome
if __name__ == '__main__':
s = Screen(0)
img = Pattern("C:\Sikuli_Path\Images_gmail_login\img.PNG")
img1 = Pattern("C:\Sikuli_Path\Images_gmail_login\img1.PNG")
img2= Pattern("C:\Sikuli_Path\Images_gmail_login\img2.PNG")
img3= Pattern("C:\Sikuli_Path\Images_gmail_login\img3.PNG")
img4 = Pattern("C:\Sikuli_Path\Images_gmail_login\img4.PNG")
chromedriver =
"C:\Users\Hemalatha_Yenupuri\Documents\Webdrivers\chromedriver"
driver = chrome(chromedriver)
driver.get("http://www.google.com")
s.find("img")
s.type(img,"email login")
s.find(img1)
s.click(img1)
s.wait(img1,10)
s.type(img2,"[email protected]")
s.type(img3,"irupuney^922")
s.click(img4)
Error:
Traceback (most recent call last):
File
"C:\Users\Hemalatha_Yenupuri\Ecllipse_Code_Repository\SikuliWithSelenium\src\SeleniumTesting\SikuliTesting.py",
line 7, in <module>
from org.sikuli.script import Pattern, Screen
ImportError: No module named org.sikuli.script
Can you please guide how can i do this ? Any help will be appreciated.
Thanks,
Hemalatha
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp