Beispiel #1
0
 def focus_on_frame(self, elem_setu_id, is_instance_action=False, instance_index=0):
     element = None
     if is_instance_action:
         element = self.__driver_melements[elem_setu_id].get_element_at_index(instance_index)
     else:
         element = self.__driver_elements[elem_setu_id]
     DriverCommands.focus_on_frame(self.__driver, element)
Beispiel #2
0
 def take_screenshot(self):
     DriverCommands.take_screenshot(self.__driver)
Beispiel #3
0
 def execute_javascript(self, script):
     DriverCommands.execute_javascript(self.__driver, script)
Beispiel #4
0
 def refersh_browser(self):
     DriverCommands.refersh_browser(self.__driver)
Beispiel #5
0
 def go_forward_in_browser(self):
     DriverCommands.go_forward_in_browser(self.__driver)
Beispiel #6
0
 def confirm_web_alert(self):
     DriverCommands.confirm_web_alert(self.__driver)
Beispiel #7
0
 def focus_on_window(self, handle):
     DriverCommands.focus_on_window(self.__driver, handle)
Beispiel #8
0
 def get_current_window_size(self):
     res = DriverCommands.get_current_window_size(self.__driver)
     return {"width" : res[0], "height" : res[1]}
Beispiel #9
0
 def focus_on_dom_root(self):
     DriverCommands.focus_on_dom_root(self.__driver)
Beispiel #10
0
 def focus_on_parent_frame(self):
     DriverCommands.focus_on_parent_frame(self.__driver)
Beispiel #11
0
 def send_text_to_web_alert(self, text):
     DriverCommands.send_text_to_web_alert(self.__driver, text)
Beispiel #12
0
 def get_text_from_web_alert(self):
     return DriverCommands.get_text_from_web_alert(self.__driver)
Beispiel #13
0
 def dismiss_web_alert(self):
     DriverCommands.dismiss_web_alert(self.__driver)
Beispiel #14
0
 def get_current_window_title(self):
     return DriverCommands.get_window_title(self.__driver)
Beispiel #15
0
 def quit(self):
     DriverCommands.quit(self.__driver)
Beispiel #16
0
 def maximize_current_window(self):
     DriverCommands.maximize_window(self.__driver)
Beispiel #17
0
 def go_to_url(self, url):
     DriverCommands.go_to_url(self.__driver, url)
Beispiel #18
0
 def get_all_window_handles(self):
     return DriverCommands.get_all_winodw_handles(self.__driver)
Beispiel #19
0
 def go_back_in_browser(self):
     DriverCommands.go_back_in_browser(self.__driver)
Beispiel #20
0
 def close_current_window(self):
     DriverCommands.close_current_window(self.__driver)
Beispiel #21
0
 def is_web_alert_present(self):
     return DriverCommands.is_web_alert_present(self.__driver)