def basic_information(self, required_only=False): """ Fill in the fields of "Basic information" area. @param required_only: Fill in only the required fields or not? @return: True if all goes well otherwise False. """ # *.BAI.0 - ID input_field(self.driver, self.fields_prefix + "bai_0_id", "selenium-RESOURCE") # *.BAI.1 - Name input_field(self.driver, self.fields_prefix + "bai_1_name", "SeleniumHQ Browser Automation - RESOURCE") # *.BAI.2 - Service Organisation suggestion_input_field( self.driver, self.fields_prefix + "bai_2_service_organisation", "National Infrastructures for Research and Technology") if not required_only: # *.BAI.3 - Service Providers table_select_field(self.driver, self.fields_prefix + "bai_3_service_providers", 1) # *.BAI.4 - Webpage input_field(self.driver, self.fields_prefix + "bai_4_webpage", "https://www.selenium.dev")
def attribution_information(self): """ Fill in the fields of "Attribution Information" area. @return: True if all goes well otherwise False. """ # *.ATI.1 - Funding Body table_select_field(self.driver, self.fields_prefix + "ati_1_funding_body", 45) # *.ATI.2 - Funding Program table_select_field(self.driver, self.fields_prefix + "ati_2_funding_program", 29) # *.ATI.3 - Grant/Project Name input_field(self.driver, self.fields_prefix + "ati_3_grant_project_name", "SELENIUM")
def dependencies_information(self): """ Fill in the fields of "Dependencies Information" area. @return: True if all goes well otherwise False. """ # *.DEI.1 - Required Resources table_select_field(self.driver, "required_resources", 1) # *.DEI.2 - Related Resources table_select_field(self.driver, "related_resources", 1) # *.DEI.3 - Related Platforms input_field(self.driver, self.fields_prefix + "dei_3_related_platforms", "GNU/Linux")
def classification_information(self, required_only=False): """ Fill in the fields of "Classification Information" area. This method is responsible for filling in all the fields in the "Classification Information" area from the "https://testvm.agora.grnet.gr/ui/providers/create" page. @param required_only: Fill in only the required fields or not? @return: True if all goes well otherwise False. """ # *.CLi.1 - Scientific Domain table_select_field(self.driver, self.fields_prefix + "cli_1_scientific_domain", 3) # *.CLI.2 - Scientific Subdomain table_select_field(self.driver, self.fields_prefix + "cli_2_scientific_subdomain", 5) if not required_only: # *.CLI.3 - Tags input_field(self.driver, self.fields_prefix + "cli_3_tags", "selenium,")
def other_information(self, required_only=False): """ Fill in the fields of "Other Information" area. This method is responsible for filling in all the fields in the "Other Information" area from the "https://testvm.agora.grnet.gr/ui/providers/create" page. @param required_only: Fill in only the required fields or not? @return: True if all goes well otherwise False. """ # *.OTH.1 - Hosting Legal Entity input_field(self.driver, self.fields_prefix + "oth_1_hosting_legal_entity", "Something") # *.OTH.2 - Participating Countries suggestion_input_field( self.driver, self.fields_prefix + "oth_2_participating_countries", "Greece") # *.OTH.3 - Affiliations table_select_field(self.driver, self.fields_prefix + "oth_3_affiliations", 5) # *.OTH.4 - Networks table_select_field(self.driver, self.fields_prefix + "oth_4_networks", 25) # *.OTH.5 - Structure Type table_select_field(self.driver, self.fields_prefix + "oth_5_structure_type", 1) # *.OTH.6 - ESFRI Domain table_select_field(self.driver, self.fields_prefix + "oth_6_esfri_domain", 3) # *.OTH.7 - ESFRI Type suggestion_input_field(self.driver, self.fields_prefix + "oth_7_esfri_type", "Not an ESFRI project or landmark") # *.OTH.8 - MERIL Scientific Domain table_select_field( self.driver, self.fields_prefix + "oth_8_meril_scientific_domain", 1) # *.OTH.9 - MERIL Scientific Subdomain table_select_field( self.driver, self.fields_prefix + "oth_9_meril_scientific_subdomain", 5) # *.OTH.10 - Areas of activity table_select_field(self.driver, self.fields_prefix + "oth_10_areas_of_activity", 2) # *.OTH.11 - Societal Grand challenges table_select_field( self.driver, self.fields_prefix + "oth_11_societal_grand_challenges", 5) # *.OTH.12 - National Roadmaps input_field(self.driver, self.fields_prefix + "oth_12_national_roadmaps", "SELENIUM")
def classification_information(self, required_only=False): """ Fill in the fields of "Classification Information" area. @param required_only: Fill in only the required fields or not? @return: True if all goes well otherwise False. """ # *.CLI.1 - Scientific Domain table_select_field(self.driver, self.fields_prefix + "cli_1_scientific_domain", 4) # *.CLI.2 - Scientific Subdomain table_select_field(self.driver, self.fields_prefix + "cli_2_scientific_subdomain", 15) # *.CLI.3 - Category table_select_field(self.driver, self.fields_prefix + "cli_3_category", 10) # *.CLI.4 - Subcategory table_select_field(self.driver, self.fields_prefix + "cli_4_subcategory", 22) if not required_only: # *.CLI.5 - Target Users table_select_field(self.driver, self.fields_prefix + "cli_5_target_users", 7) # *.CLI.6 - Access Types table_select_field(self.driver, self.fields_prefix + "cli_6_access_type", 1) # *.CLI.7 - Access Mode table_select_field(self.driver, self.fields_prefix + "cli_7_access_mode", 1) # *.CLI.8 - Tags input_field(self.driver, self.fields_prefix + "cli_8_tags", "selenium CLI,")