Yes I dont have issue with unittest framework but i dont have to reconized my issue How can I resolve this issue ?? So I need to use splinter???
On Thu, Jan 19, 2017 at 7:56 AM, Sarika Shrivastava <sarika1989...@gmail.com > wrote: > Yes I dont have issue with unittest framework but i dont have to reconized > my issue How can I resolve this issue ?? > So I need to use splinter??? > > On Wed, Jan 18, 2017 at 6:15 PM, George Fischhof <geo...@fischhof.hu> > wrote: > >> >> >> 2017-01-18 11:18 GMT+01:00 Sarika Shrivastava <sarika1989...@gmail.com>: >> >>> import unittest >>> from selenium import webdriver >>> from selenium.webdriver.common.keys import Keys >>> import time >>> >>> class PythonOrgSearch(unittest.TestCase): >>> >>> def setUp(self): >>> self.driver = >>> webdriver.Chrome('C:\Users\uidk9685\Downloads\chromedriver.exe') >>> # print self.driver >>> time.sleep(0.5) >>> >>> def test_search_in_python_org(self): >>> driver = self.driver >>> >>> # driver.get("http://www.python.org") >>> # self.assertIn("Python", driver.title) >>> # elem = driver.find_element_by_name("q") >>> # elem.send_keys("pycon") >>> # elem.send_keys(Keys.RETURN) >>> # assert "No results found." not in driver.page_source >>> >>> >>> def tearDown(self): >>> pass >>> # self.driver.close() >>> >>> if __name__ == "__main__": >>> unittest.main() >>> >>> >>> >>> >>> [image: Inline image 2] >>> -- >>> Best regards, >>> >>> Sarika Shrivastava >>> Associate Engineer >>> >>> Continental Automotive Components (India) Pvt. Ltd., >>> 8th Floor, Gold Hill Supreme Software Park, >>> Plot No. 21, 22, 27 & 28, Shanthipura Road, >>> Electronics City, Phase II, Hosur Road, >>> Bangalore-560 100 >>> >>> Tel: +919741457409 <+91%2097414%2057409> >>> Mobile: +919741457409 <+91%2097414%2057409> >>> E-Mail: sarika.shrivast...@continental-corporation.com >>> Web: www.continental-corporation.com >>> _______________________________________________ >>> Tutor maillist - Tutor@python.org >>> To unsubscribe or change subscription options: >>> https://mail.python.org/mailman/listinfo/tutor >>> >> >> >> I am sorry, I saw only the first part of the title of Your message. And I >> thought that You have issues with the unittest framework. >> For web automation I use the library splinter, which uses selenium, but >> it is easier. >> >> BR, >> George >> > > > > -- > Best regards, > > Sarika Shrivastava > Associate Engineer > > Continental Automotive Components (India) Pvt. Ltd., > 8th Floor, Gold Hill Supreme Software Park, > Plot No. 21, 22, 27 & 28, Shanthipura Road, > Electronics City, Phase II, Hosur Road, > Bangalore-560 100 > > Tel: +919741457409 <+91%2097414%2057409> > Mobile: +919741457409 <+91%2097414%2057409> > E-Mail: sarika.shrivast...@continental-corporation.com > Web: www.continental-corporation.com > -- Best regards, Sarika Shrivastava Associate Engineer Continental Automotive Components (India) Pvt. Ltd., 8th Floor, Gold Hill Supreme Software Park, Plot No. 21, 22, 27 & 28, Shanthipura Road, Electronics City, Phase II, Hosur Road, Bangalore-560 100 Tel: +919741457409 Mobile: +919741457409 E-Mail: sarika.shrivast...@continental-corporation.com Web: www.continental-corporation.com _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor