sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #07671
Re: [Question #182530]: Selenium python API usage in Sikuli scripts
Question #182530 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/182530
Status: Needs information => Open
Geo kurian gave more information on the question:
path: C:\Program Files\Sikuli X\libs;C:\Program Files\Java\jre6\\bin
sikuli_home:C:\Program Files\Sikuli X\
This is the code
from __future__ import with_statement
from selenium import selenium
import unittest, time, re
class Untitled(unittest.TestCase):
def setUp(self):
self.verificationErrors = []
self.selenium = selenium("localhost", 4444, "*chrome", "http://www.google.co.in/")
self.selenium.start()
def test_untitled(self):
sel = self.selenium
sel.open("about:home")
self.assertEqual("Mozilla Firefox Start Page", sel.get_title())
sel.type("id=searchText", "geo")
sel.click("id=searchSubmit")
sel.wait_for_page_to_load("30000")
self.assertEqual("geo - Google Search", sel.get_title())
sel.click("link=Geo tv | Geo News ")
sel.wait_for_page_to_load("30000")
self.assertEqual("Geo tv | Geo News ", sel.get_title())
def tearDown(self):
self.selenium.stop()
self.assertEqual([], self.verificationErrors)
if __name__ == "__main__":
unittest.main()
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.