コード例 #1
0
 def test_priority4_upload_licenece_copy_file(self):
     driver = self.driver
     formpage = FormPage(driver)
     formpage.upload_licence(
         "C://Users//fathih//PycharmProjects//Rent_POM//Test//images//python.png"
     )
     time.sleep(3)
コード例 #2
0
 def test_priority9_upload_vehicle_picture(self):
     driver = self.driver
     formpage = FormPage(driver)
     formpage.upload_vihicle_picture(
         "C://Users//fathih//PycharmProjects//Rent_POM//Test//images//python.png"
     )
     time.sleep(8)
コード例 #3
0
    def test_priority6_enter_vehicle_number(self):
        driver = self.driver
        formpage = FormPage(driver)
        formpage.enter_vehicle_number("EP-HQ-8165")

        # page = driver.find_elements_by_tag_name("html")
        # page.send_keys(Keys.END)
        driver.execute_script("window.scroll(0,700)")
        time.sleep(2)
コード例 #4
0
 def test_priority8_select_vehicle_type(self):
     driver = self.driver
     formpage = FormPage(driver)
     formpage.select_vehicle_type("//select[@name='vehicle_type_id']")
     time.sleep(5)
コード例 #5
0
 def test_priority7_select_vehicle_owner_permission(self):
     driver = self.driver
     formpage = FormPage(driver)
     formpage.select_vehicle_owner_permission(
         "input.is_vehicle_owner:nth-child(4)")
     time.sleep(3)
コード例 #6
0
 def test_priority3_fillform(self):
     driver = self.driver
     formpage = FormPage(driver)
     formpage.enter_drivername("aadil")
     formpage.enter_mobile_number("0528542762")
     formpage.enter_email("*****@*****.**")
     formpage.enter_driver_password("123456")
     formpage.enter_nic("920012213v")
コード例 #7
0
 def test_priority10_parking_location(self):
     driver = self.driver
     formpage = FormPage(driver)
     formpage.enter_parking_location("AbuDhabi001")