def enter_foreign_master_vendor_address(self, sam_type, country_code):
        self.select_sam_address_type(sam_type)
        self.element_click(self._search_for_country)
        country = LookUpCountryWindow(self.driver)
        country.select_country(country_code)
        result = self.driver.find_element(By.ID, self._override_address_box).is_selected()
        if result:
            print('Checkbox already selected')
        else:
            self.driver.find_element(By.ID, self._override_address_box).click()
            print('Checkbox selected')

        self.enter_address_one()
        self.enter_address_two()
        self.enter_city()
        self.enter_postal_code()

        if country_code == "GBR":
            self.search_for_state()
            county = LookUpStateWindow(self.driver)
            county.select_county(str(choice(GBR_COUNTIES)))
        else:
            self.search_for_state()
            state = LookUpStateWindow(self.driver)
            state.select_random_state()
 def clean_singapore_address(self,
                             desc_text="SINGAPORE",
                             sam_type="Corporate Info",
                             country_code="SGP",
                             address_1="Courtyard Singapore Novena",
                             address_2="99 Irrawaddy Road",
                             postal="329568"):
     self.clear_element(self._description_field)
     self.ca_enter_description(desc_text)
     self.select_sam_address_type(sam_type)
     self.ca_enter_effective_date()
     self.element_click(self._search_for_country)
     country = LookUpCountryWindow(self.driver)
     country.select_country(country_code)
     self.ca_enter_address_one(address_1)
     self.ca_enter_address_two(address_2)
     self.ca_enter_postal(postal)
 def clean_barbados_address(self,
                            desc_text="BARBADOS",
                            sam_type="Corporate Info",
                            country_code="BRB",
                            address_1="The Garrison Historic Area",
                            address_2="Hastings, Christ Church",
                            city="Bridgetown",
                            post_code="BB15028"):
     self.clear_element(self._description_field)
     self.ca_enter_description(desc_text)
     self.select_sam_address_type(sam_type)
     self.ca_enter_effective_date()
     self.element_click(self._search_for_country)
     country = LookUpCountryWindow(self.driver)
     country.select_country(country_code)
     self.ca_enter_address_one(address_1)
     self.ca_enter_address_two(address_2)
     self.ca_enter_city(city)
     self.ca_enter_postal_code(post_code)
 def clean_australian_address(self,
                              desc_text="AUSTRALIA",
                              sam_type="Corporate Info",
                              country_code="AUS",
                              address_1="The Australian",
                              address_2="100 Cumberland St",
                              city="Sydney",
                              postal="2000"):
     self.clear_element(self._description_field)
     self.ca_enter_description(desc_text)
     self.select_sam_address_type(sam_type)
     self.ca_enter_effective_date()
     self.element_click(self._search_for_country)
     country = LookUpCountryWindow(self.driver)
     country.select_country(country_code)
     self.ca_enter_address_one(address_1)
     self.ca_enter_address_two(address_2)
     self.ca_enter_city(city)
     self.ca_enter_postal(postal)
 def clean_anguillian_address(self,
                              desc_text="ANGUILLA",
                              sam_type="Corporate Info",
                              country_code="AIA",
                              address_1="Carimar BCH Club",
                              address_2="P.O. Box 327",
                              city="Meads Bay",
                              post_code="AI 2640"):
     self.clear_element(self._description_field)
     self.ca_enter_description(desc_text)
     self.ca_enter_effective_date()
     self.select_sam_address_type(sam_type)
     self.element_click(self._search_for_country)
     country = LookUpCountryWindow(self.driver)
     country.select_country(country_code)
     self.ca_enter_address_one(address_1)
     self.ca_enter_address_two(address_2)
     self.ca_enter_city(city)
     self.ca_enter_postal_code(post_code)
 def clean_china_address(self,
                         desc_text="CHINA",
                         sam_type="Corporate Info",
                         country_code="CHN",
                         address_1="16 Bin Shui Road",
                         address_2="He Xi District",
                         city="Tianjin",
                         post_code="300061"):
     self.clear_element(self._description_field)
     self.ca_enter_description(desc_text)
     self.select_sam_address_type(sam_type)
     self.ca_enter_effective_date()
     self.element_click(self._search_for_country)
     country = LookUpCountryWindow(self.driver)
     country.select_country(country_code)
     self.ca_enter_address_one(address_1)
     self.ca_enter_address_two(address_2)
     self.ca_enter_city(city)
     self.ca_enter_postal_code(post_code)
 def clean_canadian_address(self,
                            desc_text="CANADA",
                            sam_type="Corporate Info",
                            country_code="CAN",
                            address_1="Sheraton Hotel",
                            address_2="35 Rue Laurier",
                            city="Gatineau",
                            post_code="J8X 4E9"):
     self.clear_element(self._description_field)
     self.ca_enter_description(desc_text)
     self.select_sam_address_type(sam_type)
     self.ca_enter_effective_date()
     self.element_click(self._search_for_country)
     country = LookUpCountryWindow(self.driver)
     country.select_country(country_code)
     self.ca_enter_address_one(address_1)
     self.ca_enter_address_two(address_2)
     self.ca_enter_city(city)
     self.ca_enter_postal_code(post_code)
 def clean_italian_address(self,
                           desc_text,
                           sam_type="Corporate Info",
                           country_code="ITA",
                           address_1="Via Bruno Buozzi, 35",
                           address_2="Bldg. 3",
                           city="Bozano",
                           cap="39100"):
     self.clear_element(self._description_field)
     self.ca_enter_description(desc_text)
     self.select_sam_address_type(sam_type)
     self.ca_enter_effective_date()
     self.element_click(self._search_for_country)
     country = LookUpCountryWindow(self.driver)
     country.select_country(country_code)
     self.ca_enter_address_one(address_1)
     self.ca_enter_address_two(address_2)
     self.ca_enter_city(city)
     self.ca_enter_cap(cap)
 def clean_swiss_address(self,
                         desc_text="SWITZERLAND",
                         sam_type="Corporate Info",
                         country_code="CHE",
                         address_1="The Cambrian, Abelboden",
                         address_2="Dorfstrasse 7",
                         city="Adelboden",
                         postal="3715"):
     self.clear_element(self._description_field)
     self.ca_enter_description(desc_text)
     self.select_sam_address_type(sam_type)
     self.ca_enter_effective_date()
     self.element_click(self._search_for_country)
     country = LookUpCountryWindow(self.driver)
     country.select_country(country_code)
     self.ca_enter_address_one(address_1)
     self.ca_enter_address_two(address_2)
     self.ca_enter_city(city)
     self.ca_enter_postal(postal)
 def clean_portugal_address(self,
                            desc_text="PORTUGAL",
                            sam_type="Corporate Info",
                            country_code="PRT",
                            address_1="Rua das Palmeiras",
                            address_2="Lote 5 Quinta da Marinha",
                            city="Cascais",
                            postal="2750-005"):
     self.clear_element(self._description_field)
     self.ca_enter_description(desc_text)
     self.select_sam_address_type(sam_type)
     self.ca_enter_effective_date()
     self.element_click(self._search_for_country)
     country = LookUpCountryWindow(self.driver)
     country.select_country(country_code)
     self.ca_enter_address_one(address_1)
     self.ca_enter_address_two(address_2)
     self.ca_enter_city(city)
     self.ca_enter_postal(postal)
 def clean_malaysian_address(self,
                             desc_text="MALAYSIA",
                             sam_type="Corporate Info",
                             country_code="MYS",
                             address_1="Jalan Pantai 3",
                             address_2="Dessaru",
                             city="Bandar Penawar",
                             postal="81930"):
     self.clear_element(self._description_field)
     self.ca_enter_description(desc_text)
     self.select_sam_address_type(sam_type)
     self.ca_enter_effective_date()
     self.element_click(self._search_for_country)
     country = LookUpCountryWindow(self.driver)
     country.select_country(country_code)
     self.ca_enter_address_one(address_1)
     self.ca_enter_address_two(address_2)
     self.ca_enter_city(city)
     self.ca_enter_postal(postal)
 def clean_panama_address(self,
                          desc_text="PANAMA",
                          sam_type="Corporate Info",
                          country_code="PAN",
                          address_1="La Rotunda Avenue",
                          address_2="Costa del Este",
                          city="Panama",
                          postal="1001"):
     self.clear_element(self._description_field)
     self.ca_enter_description(desc_text)
     self.select_sam_address_type(sam_type)
     self.ca_enter_effective_date()
     self.element_click(self._search_for_country)
     country = LookUpCountryWindow(self.driver)
     country.select_country(country_code)
     self.ca_enter_address_one(address_1)
     self.ca_enter_address_two(address_2)
     self.ca_enter_city(city)
     self.ca_enter_postal(postal)
 def clean_philippines_address(self,
                               desc_text="PHILIPPINES",
                               sam_type="Corporate Info",
                               country_code="PHL",
                               address_1="1588 Pedro Gil St",
                               address_2="Corner MH del Pilar",
                               city="Manila",
                               postal="1004"):
     self.clear_element(self._description_field)
     self.ca_enter_description(desc_text)
     self.select_sam_address_type(sam_type)
     self.ca_enter_effective_date()
     self.element_click(self._search_for_country)
     country = LookUpCountryWindow(self.driver)
     country.select_country(country_code)
     self.ca_enter_address_one(address_1)
     self.ca_enter_address_two(address_2)
     self.ca_enter_city(city)
     self.ca_enter_postal(postal)
 def clean_united_kingdom_address(self,
                                  desc_text="UNITED KINGDOM",
                                  sam_type="Corporate Info",
                                  country_code="GBR",
                                  address_1="160 Warfside Street",
                                  address_2="The Mailbox",
                                  city="Birmingham",
                                  post_code="B1 1RL"):
     self.clear_element(self._description_field)
     self.ca_enter_description(desc_text)
     self.select_sam_address_type(sam_type)
     self.ca_enter_effective_date()
     self.element_click(self._search_for_country)
     country = LookUpCountryWindow(self.driver)
     country.select_country(country_code)
     self.ca_enter_address_one(address_1)
     self.ca_enter_address_two(address_2)
     self.ca_enter_city(city)
     self.ca_enter_postal_code(post_code)
 def clean_new_zealand_address(self,
                               desc_text="NEW ZEALAND",
                               sam_type="Corporate Info",
                               country_code="NZL",
                               address_1="The St. James",
                               address_2="20 Chisholm Crescent",
                               city="Hanmer Springs",
                               postal="7360"):
     self.clear_element(self._description_field)
     self.ca_enter_description(desc_text)
     self.select_sam_address_type(sam_type)
     self.ca_enter_effective_date()
     self.element_click(self._search_for_country)
     country = LookUpCountryWindow(self.driver)
     country.select_country(country_code)
     self.ca_enter_address_one(address_1)
     self.ca_enter_address_two(address_2)
     self.ca_enter_city(city)
     self.ca_enter_postal(postal)
 def clean_indian_address(self,
                          desc_text="INDIA",
                          sam_type="Corporate Info",
                          country_code="IND",
                          address_1="1234 Test Street",
                          address_2="BLDG 3",
                          city="Chennai",
                          post_code="600073"):
     self.clear_element(self._description_field)
     self.ca_enter_description(desc_text)
     self.select_sam_address_type(sam_type)
     self.ca_enter_effective_date()
     self.element_click(self._search_for_country)
     country = LookUpCountryWindow(self.driver)
     country.select_country(country_code)
     self.ca_enter_address_one(address_1)
     self.ca_enter_address_two(address_2)
     self.ca_enter_city(city)
     self.ca_enter_postal_code(post_code)
 def clean_swaziland_address(self,
                             desc_text="SWAZILAND",
                             sam_type="Corporate Info",
                             country_code="SWZ",
                             address_1="Summerfield Botanical Garden",
                             address_2="Matshpa Valley Rd.",
                             city="Manzini",
                             postal="M200"):
     self.clear_element(self._description_field)
     self.ca_enter_description(desc_text)
     self.select_sam_address_type(sam_type)
     self.ca_enter_effective_date()
     self.element_click(self._search_for_country)
     country = LookUpCountryWindow(self.driver)
     country.select_country(country_code)
     self.ca_enter_address_one(address_1)
     self.ca_enter_address_two(address_2)
     self.ca_enter_city(city)
     self.ca_enter_postal(postal)
 def clean_argentine_address(self,
                             desc_text="ARGENTINA",
                             sam_type="Corporate Info",
                             country_code="ARG",
                             address_1="Avenida Leandro",
                             address_2="N. Alem 1193",
                             city="Bueno Aires",
                             postal="1001"):
     self.clear_element(self._description_field)
     self.ca_enter_description(desc_text)
     self.select_sam_address_type(sam_type)
     self.ca_enter_effective_date()
     self.element_click(self._search_for_country)
     country = LookUpCountryWindow(self.driver)
     country.select_country(country_code)
     self.ca_enter_address_one(address_1)
     self.ca_enter_address_two(address_2)
     self.ca_enter_city(city)
     self.ca_enter_postal(postal)
 def clean_israel_address(self,
                          desc_text,
                          sam_type="Corporate Info",
                          country_code="ISR",
                          address_1="The Drisco Hotel",
                          address_2="Rehov Auerbach 6",
                          city="Tel Aviv",
                          postal="6100002"):
     self.clear_element(self._description_field)
     self.ca_enter_description(desc_text)
     self.select_sam_address_type(sam_type)
     self.ca_enter_effective_date()
     self.element_click(self._search_for_country)
     country = LookUpCountryWindow(self.driver)
     country.select_country(country_code)
     self.ca_enter_address_one(address_1)
     self.ca_enter_address_two(address_2)
     self.ca_enter_city(city)
     self.ca_enter_postal(postal)
 def clean_hong_kong_address(self,
                             desc_text,
                             sam_type="Corporate Info",
                             country_code="HKG",
                             address_1="International Commerce Center",
                             address_2="No. 1 Austin Road West",
                             district="Kowloon",
                             area="Kowloon"):
     self.clear_element(self._description_field)
     self.ca_enter_description(desc_text)
     self.select_sam_address_type(sam_type)
     self.ca_enter_effective_date()
     self.element_click(self._search_for_country)
     country = LookUpCountryWindow(self.driver)
     country.select_country(country_code)
     self.ca_enter_address_one(address_1)
     self.ca_enter_address_two(address_2)
     self.ca_enter_district(district)
     self.ca_enter_area(area)
 def clean_germany_po_address(self,
                              desc_text="GERMANY (PO BOX)",
                              sam_type="Corporate Info",
                              country_code="DEU",
                              address_1="Sitfung Warentest",
                              po_box="Postfach 3 14 41",
                              city="Berlin",
                              postal="10724"):
     self.clear_element(self._description_field)
     self.ca_enter_description(desc_text)
     self.select_sam_address_type(sam_type)
     self.ca_enter_effective_date()
     self.element_click(self._search_for_country)
     country = LookUpCountryWindow(self.driver)
     country.select_country(country_code)
     self.ca_enter_address_one(address_1)
     self.ca_enter_po_address(po_box)
     self.ca_enter_city(city)
     self.ca_enter_postal_code(postal)
 def clean_germany_address(self,
                           desc_text,
                           sam_type,
                           country_code="DEU",
                           address_1="Moxy Munich Messe",
                           address_2="Otto-Hahn 21",
                           city="Aschheim",
                           postal="85609"):
     self.clear_element(self._description_field)
     self.ca_enter_description(desc_text)
     self.select_sam_address_type(sam_type)
     self.ca_enter_effective_date()
     self.element_click(self._search_for_country)
     country = LookUpCountryWindow(self.driver)
     country.select_country(country_code)
     self.ca_enter_address_one(address_1)
     self.ca_enter_address_two(address_2)
     self.ca_enter_city(city)
     self.ca_enter_postal_code(postal)
 def clean_british_indian_ocean_territory_address(
         self,
         desc_text="BIOT",
         sam_type="Corporate Info",
         country_code="IOT",
         address_1="BIOT Administration",
         address_2="King Charles Street",
         city="N/A",
         post_code="SW1A 2AH"):
     self.clear_element(self._description_field)
     self.ca_enter_description(desc_text)
     self.select_sam_address_type(sam_type)
     self.ca_enter_effective_date()
     self.element_click(self._search_for_country)
     country = LookUpCountryWindow(self.driver)
     country.select_country(country_code)
     self.ca_enter_address_one(address_1)
     self.ca_enter_address_two(address_2)
     self.ca_enter_city(city)
     self.ca_enter_postal_code(post_code)
 def clean_french_address(
         self,
         desc_text="FRANCE",
         sam_type="Remit",
         country_code="FRA",
         address_1="Holiday Inn Paris - Gare de Lyon Bastille",
         address_2="11 Rue de Lyon",
         city="Paris",
         postal="75012"):
     self.clear_element(self._description_field)
     self.ca_enter_description(desc_text)
     self.select_sam_address_type(sam_type)
     self.ca_enter_effective_date()
     self.element_click(self._search_for_country)
     country = LookUpCountryWindow(self.driver)
     country.select_country(country_code)
     self.ca_enter_address_one(address_1)
     self.ca_enter_address_two(address_2)
     self.ca_enter_city(city)
     self.ca_enter_postal(postal)
 def clean_virgin_islands_british_address(
         self,
         desc_text="BRITISH VIRGIN ISLANDS",
         sam_type="Corporate Info",
         country_code="VGB",
         address_1="Frenchmans (Hotel)",
         address_2="Frenchman's Cay",
         city="Tortola",
         postal="VG100"):
     self.clear_element(self._description_field)
     self.ca_enter_description(desc_text)
     self.select_sam_address_type(sam_type)
     self.ca_enter_effective_date()
     self.element_click(self._search_for_country)
     country = LookUpCountryWindow(self.driver)
     country.select_country(country_code)
     self.ca_enter_address_one(address_1)
     self.ca_enter_address_two(address_2)
     self.ca_enter_city(city)
     self.ca_enter_postal(postal)
 def clean_japanese_address(self,
                            desc_text="JAPAN",
                            sam_type="Corporate Info",
                            country_code="JPN",
                            address_1="Four Points by Sheraton Hakodate",
                            address_2="14-10 Wakamatsu-cho",
                            city="Hakodate",
                            postal="040-0063"):
     self.clear_element(self._description_field)
     self.ca_enter_description(desc_text)
     self.select_sam_address_type(sam_type)
     self.ca_enter_effective_date()
     self.element_click(self._search_for_country)
     country = LookUpCountryWindow(self.driver)
     country.select_country(country_code)
     # self.click_override_address_verification_chkbx()
     self.ca_enter_address_one(address_1)
     self.ca_enter_address_two(address_2)
     self.ca_enter_city(city)
     self.ca_enter_postal(postal)
 def clean_netherlands_address(self,
                               desc_text="NETHERLANDS",
                               sam_type="Corporate Info",
                               country_code="NLD",
                               location="Amsterdam Marriott Hotel",
                               street="Stadhouderskade",
                               number="12",
                               city="Amsterdam",
                               postal="1054 ES"):
     self.clear_element(self._description_field)
     self.ca_enter_description(desc_text)
     self.select_sam_address_type(sam_type)
     self.ca_enter_effective_date()
     self.element_click(self._search_for_country)
     country = LookUpCountryWindow(self.driver)
     country.select_country(country_code)
     self.ca_enter_location(location)
     self.ca_enter_street(street)
     self.enter_number_for_netherlands(number)
     self.ca_enter_city(city)
     self.ca_enter_postal_code(postal)
 def clean_belgian_address(self,
                           desc_text="BELGIUM",
                           sam_type="Corporate Info",
                           country_code="BEL",
                           location="Monsiuer Alain Dupont",
                           street="Rue Du Vivier",
                           number="7",
                           city="Bruxelles",
                           postal="1000"):
     self.clear_element(self._description_field)
     self.ca_enter_description(desc_text)
     self.select_sam_address_type(sam_type)
     self.ca_enter_effective_date()
     self.element_click(self._search_for_country)
     country = LookUpCountryWindow(self.driver)
     country.select_country(country_code)
     self.ca_enter_location(location)
     self.ca_enter_street(street)
     self.ca_enter_number_for_belgium(number)
     self.ca_enter_city(city)
     self.ca_enter_postal(postal)
 def clean_mexican_address(self,
                           desc_text="MEXICO",
                           sam_type="Corporate Info",
                           country_code="MEX",
                           street_and_num_1="Mission De Los Lagos 9020",
                           street_and_num_2="Partido Iglesias",
                           colony="Ciudad",
                           city="Juarez",
                           post_code="32688"):
     self.clear_element(self._description_field)
     self.ca_enter_description(desc_text)
     self.select_sam_address_type(sam_type)
     self.ca_enter_effective_date()
     self.element_click(self._search_for_country)
     country = LookUpCountryWindow(self.driver)
     country.select_country(country_code)
     self.ca_enter_address_one(street_and_num_1)
     self.ca_enter_address_two(street_and_num_2)
     self.ca_enter_address_three(colony)
     self.ca_enter_city(city)
     self.ca_enter_postal_code(post_code)
 def clean_brazilian_address(self,
                             desc_text="BRAZIL",
                             sam_type="Corporate Info",
                             country_code="BRA",
                             address_1="Rua Escritor Jorge de Limao",
                             address_2="58",
                             city="Barra de Sao Miguel",
                             neighborhood="Barra mar",
                             postal="57180-000"):
     self.clear_element(self._description_field)
     self.ca_enter_description(desc_text)
     self.select_sam_address_type(sam_type)
     self.ca_enter_effective_date()
     self.element_click(self._search_for_country)
     country = LookUpCountryWindow(self.driver)
     country.select_country(country_code)
     self.ca_enter_address_one(address_1)
     self.ca_enter_address_two(address_2)
     self.ca_enter_city(city)
     self.ca_enter_neighborhood(neighborhood)
     self.ca_enter_postal(postal)