예제 #1
0
 def click_a_value(self, button_locator_name: str):
     # TODO: MyWebElement would need to store locators to enable this check
     # TODO: check if the button.locator is in the accepted list
     # if button.locator in _BUTTON_LOCATORS:
     #   button.click()
     # else:
     #   report problems, raise errors
     if button_locator_name in self.BUTTONS:
         button = MyWebElement(_we=self.body.find_element_by_xpath(self.locators[button_locator_name]))
     else:
         print("Button name '{0}' not supported".format(button_locator_name))
         raise ValueError
     print("clicking value = {}".format(button_locator_name))
     button.click()
예제 #2
0
 def kid_field(self) -> MyWebElement:
     return MyWebElement(_we=self.body.find_element_by_xpath(self.locators[self._KID]))
예제 #3
0
 def find_beihilfesatz_button(self) -> MyWebElement:
     return MyWebElement(_we=self.body.find_element_by_xpath(self.locators[
         self._BEIHILFESATZ]))
예제 #4
0
 def find_versicherungsbeginn_button(self) -> MyWebElement:
     return MyWebElement(_we=self.body.find_element_by_xpath(self.locators[
         self._VERSICHERUNGSBEGINN]))
예제 #5
0
 def find_klinik_einbett_description(self) -> MyWebElement:
     return MyWebElement(_we=self.body.find_element_by_xpath(self.locators[
         self._KLINIK_EINBETT]))
예제 #6
0
 def find_offer_description(self) -> MyWebElement:
     return MyWebElement(_we=self.body.find_element_by_xpath(self.locators[
         self._OFFER_DESCRIPTION]))
예제 #7
0
 def find_lebensjahr67_button(self) -> MyWebElement:
     return MyWebElement(_we=self.body.find_element_by_xpath(self.locators[
         self.Lebensjahr67]))
예제 #8
0
 def find_nationality_field(self) -> MyWebElement:
     return MyWebElement(_we=self.body.find_element_by_xpath(self.locators[
         self._NATIONALITY]))
예제 #9
0
 def find_ok_button(self) -> MyWebElement:
     return MyWebElement(
         _we=self.body.find_element_by_xpath(self.locators[self._OK]))
예제 #10
0
 def find_grundversicherung_button(self) -> MyWebElement:
     return MyWebElement(_we=self.body.find_element_by_xpath(self.locators[self.GRUNDVERSICHERUNG]))
예제 #11
0
 def find_beste_absicherung_button(self) -> MyWebElement:
     return MyWebElement(_we=self.body.find_element_by_xpath(self.locators[self.ABSICHERUNG]))
예제 #12
0
 def find_preis_leistung_button(self) -> MyWebElement:
     return MyWebElement(_we=self.body.find_element_by_xpath(self.locators[self.PREIS]))
예제 #13
0
 def __init__(self, _we: WebElement):
     MyWebElement.__init__(self, _we=_we)
     Select.__init__(self, webelement=_we)
예제 #14
0
 def find_phone_field(self) -> MyWebElement:
     return MyWebElement(
         _we=self.body.find_element_by_xpath(self.locators[self._PHONE]))
예제 #15
0
 def find_callback_name_field(self) -> MyWebElement:
     return MyWebElement(_we=self.body.find_element_by_xpath(self.locators[
         self._CALLBACK_NAME]))
예제 #16
0
 def find_birthday_field(self) -> MyWebElement:
     return MyWebElement(
         _we=self.body.find_element_by_xpath(self.locators[self._BIRTHDAY]))
예제 #17
0
 def find_callback_ruckruf_anfordern(self) -> MyWebElement:
     return MyWebElement(_we=self.body.find_element_by_xpath(self.locators[
         self._RUCKRUF_ANFORDERN]))
예제 #18
0
 def find_submit_button(self) -> MyWebElement:
     return MyWebElement(
         _we=self.body.find_element_by_xpath(self.locators[self._SUBMIT]))
예제 #19
0
 def find_termin_vereinbaren(self) -> MyWebElement:
     return MyWebElement(_we=self.body.find_element_by_xpath(self.locators[
         self._TERMIN_VEREINBAREN]))
예제 #20
0
 def find_uebertragungswert_input(self) -> MyWebElement:
     return MyWebElement(_we=self.body.find_element_by_xpath(self.locators[
         self.Uebertragungswert]))
예제 #21
0
 def find_final_time(self) -> MyWebElement:
     return MyWebElement(_we=self.body.find_element_by_xpath(self.locators[
         self._FINAL_TIME]))
예제 #22
0
 def find_first_class_description(self) -> MyWebElement:
     return MyWebElement(_we=self.body.find_element_by_xpath(self.locators[
         self._FIRST_CLASS]))
예제 #23
0
 def find_consultation_buttton(self) -> MyWebElement:
     return MyWebElement(_we=self.body.find_element_by_xpath(self.locators[
         self._GET_CONSULTATION]))
예제 #24
0
 def find_beschaeftigungsstatus_button(self) -> MyWebElement:
     return MyWebElement(_we=self.body.find_element_by_xpath(self.locators[
         self._BESCHAEFTIGUNG]))
예제 #25
0
 def find_surname_field(self) -> MyWebElement:
     return MyWebElement(
         _we=self.body.find_element_by_xpath(self.locators[self._SURNAME]))
예제 #26
0
 def find_tarif_button(self) -> MyWebElement:
     return MyWebElement(
         _we=self.body.find_element_by_xpath(self.locators[self._TARIF]))
예제 #27
0
 def find_email_field(self) -> MyWebElement:
     return MyWebElement(
         _we=self.body.find_element_by_xpath(self.locators[self._EMAIL]))
예제 #28
0
 def find_beihilfetraeger_button(self) -> MyWebElement:
     return MyWebElement(_we=self.body.find_element_by_xpath(self.locators[
         self._BEIHILFETRAEGER]))
예제 #29
0
 def weiter_button(self) -> MyWebElement:
     return MyWebElement(_we=self.body.find_element_by_xpath(self.locators[
         self._WEITERBUTTON]))