class ArmorEditModal(Component): """Definition of armor edit modal component.""" name_id = 'armorEditNameInput' type_id = 'armorEditTypeInput' magical_modifier_id = 'armorEditMagicalModifierInput' price_id = 'armorEditPriceInput' currency_denomination_id = 'armorEditCurrencyDenominationInput' weight_id = 'armorEditWeightInput' armor_class_id = 'armorEditArmorClassInput' stealth_id = 'armorEditStealthInput' don_id = 'armorEditDonButton' doff_id = 'armorEditDoffButton' description_id = 'armorEditDescriptionTextarea' done_id = 'armorEditDoneButton' name = Element(id_=name_id) type_ = Element(id_=type_id) magical_modifier = Element(id_=magical_modifier_id) price = Element(id_=price_id) currency_denomination = Element(id_=currency_denomination_id) weight = Element(id_=weight_id) armor_class = Element(id_=armor_class_id) stealth = Element(id_=stealth_id) don = Element(id_=don_id) doff = Element(id_=doff_id) description = Element(id_=description_id) done = Element(id_=done_id)
class ArmorAddModal(Component): """Definition of armor add modal component.""" modal_div_id = 'addArmor' name_id = 'armorAddNameInput' type_id = 'armorAddTypeInput' magical_modifier_id = 'armorAddMagicalModifierInput' price_id = 'armorAddPriceInput' currency_denomination_id = 'armorAddCurrencyDenominationInput' weight_id = 'armorAddWeightInput' armor_class_id = 'armorAddArmorClassInput' stealth_id = 'armorAddStealthInput' don_id = 'armorAddDonButton' doff_id = 'armorAddDoffButton' description_id = 'armorAddDescriptionTextarea' add_id = 'armorAddAddButton' cancel_id = 'armorAddCancelButton' modal_div = Element(id_=modal_div_id) name = Element(id_=name_id) type_ = Element(id_=type_id) magical_modifier = Element(id_=magical_modifier_id) price = Element(id_=price_id) currency_denomination = Element(id_=currency_denomination_id) weight = Element(id_=weight_id) armor_class = Element(id_=armor_class_id) stealth = Element(id_=stealth_id) don = Element(id_=don_id) doff = Element(id_=doff_id) description = Element(id_=description_id) add = Element(id_=add_id) cancel = Element(id_=cancel_id)
class InventoryTable(Component): """Definition of inventorys edit modal componenet.""" add_id = 'inventoryAddIcon' table_id = 'inventoryTable' item_header_id = 'inventoryTableItemHeader' item_header_sorting_arrow_xpath = '//*[@id="inventoryTableItemHeader"]/span' quantity_header_id = 'inventoryTableQuantityHeader' quantity_header_sorting_arrow_xpath = '//*[@id="inventoryTableQuantityHeader"]/span' weight_header_id = 'inventoryTableWeightHeader' wegith_header_sorting_arrow_xpath = '//*[@id="inventoryTableWeightHeader"]/span' cost_header_id = 'inventoryTableCostHeader' cost_header_sorting_arrow_xpath = '//*[@id="inventoryTableCostHeader"]/span' total_weight_id = 'inventoryTableTotalWeightSpan' add = Element(id_=add_id) table = Element(id_=table_id) item_header = Element(id_=item_header_id) item_header_sorting_arrow = Element(xpath=item_header_sorting_arrow_xpath) quantity_header = Element(id_=quantity_header_id) quantity_header_sorting_arrow = Element( xpath=quantity_header_sorting_arrow_xpath) weight_header = Element(id_=weight_header_id) weight_header_sorting_arrow = Element( xpath=wegith_header_sorting_arrow_xpath) cost_header = Element(id_=cost_header_id) cost_header_sorting_arrow = Element(xpath=cost_header_sorting_arrow_xpath) total_weight = Element(id_=total_weight_id)
class SkillsAddModal(Component): """Definition of skills add modal component.""" modal_div_id = 'addSkill' name_id = 'skillsAddNameInput' none_id = 'skillsAddNoneButton' half_id = 'skillsAddHalfButton' proficient_id = 'skillsAddProfcientButton' expertise_id = 'skillsAddExpertiseButton' str_id = 'skillsAddStrButton' dex_id = 'skillsAddDexButton' con_id = 'skillsAddConButton' int_id = 'skillsAddIntButton' wis_id = 'skillsAddWisButton' cha_id = 'skillsAddChaButton' add_id = 'skillsAddAddButton' modal_div = Element(id_=modal_div_id) name = Element(id_=name_id) none = Element(id_=none_id) half = Element(id_=half_id) proficient = Element(id_=proficient_id) expertise = Element(id_=expertise_id) str_ = Element(id_=str_id) dex = Element(id_=dex_id) con = Element(id_=con_id) int_ = Element(id_=int_id) wis = Element(id_=wis_id) cha = Element(id_=cha_id) add = Element(id_=add_id)
class AbilityScoresPointBuy(Component): """Definition of ability scoreswizard home componenet.""" points_left_xpath = ('//*[@id="content"]/wizard/div/div/div/wizard-ability' '-score-step/div/div/div[2]/div[1]/div[3]/div/div/' 'span') strength_up_xpath = ('//*[@id="content"]/wizard/div/div/div/wizard-ability' '-score-step/div/div/div[2]/div[1]/div[4]/div[1]/div/' 'div[2]/plus-minus/div[1]/div/button[1]') strength_down_xpath = ('//*[@id="content"]/wizard/div/div/div/wizard-' 'ability-score-step/div/div/div[2]/div[1]/div[4]/' 'div[1]/div/div[2]/plus-minus/div[1]/div/button[2]') dexterity_up_xpath = ('//*[@id="content"]/wizard/div/div/div/wizard-' 'ability-score-step/div/div/div[2]/div[1]/div[4]/div' '[2]/div/div[2]/plus-minus/div[1]/div/button[1]') dexterity_down_xpath = ('//*[@id="content"]/wizard/div/div/div/wizard-' 'ability-score-step/div/div/div[2]/div[1]/div[4]/' 'div[2]/div/div[2]/plus-minus/div[1]/div/button' '[2]') constitution_up_xpath = ('//*[@id="content"]/wizard/div/div/div/wizard-' 'ability-score-step/div/div/div[2]/div[1]/div[5]/' 'div[1]/div/div[2]/plus-minus/div[1]/div/button' '[1]') constitution_down_xpath = ('//*[@id="content"]/wizard/div/div/div/wizard-' 'ability-score-step/div/div/div[2]/div[1]/div' '[5]/div[1]/div/div[2]/plus-minus/div[1]/div/' 'button[2]') intelligence_up_xpath = ('//*[@id="content"]/wizard/div/div/div/wizard-' 'ability-score-step/div/div/div[2]/div[1]/div[5]/' 'div[2]/div/div[2]/plus-minus/div[1]/div/button' '[1]') intelligence_down_xpath = ('//*[@id="content"]/wizard/div/div/div/wizard' '-ability-score-step/div/div/div[2]/div[1]/div' '[5]/div[2]/div/div[2]/plus-minus/div[1]/div/' 'button[2]') wisdom_up_xpath = ('//*[@id="content"]/wizard/div/div/div/wizard-ability' '-score-step/div/div/div[2]/div[1]/div[6]/div[1]/div/' 'div[2]/plus-minus/div[1]/div/button[1]') wisdom_down_xpath = ('//*[@id="content"]/wizard/div/div/div/wizard-ability' '-score-step/div/div/div[2]/div[1]/div[6]/div[1]/div/' 'div[2]/plus-minus/div[1]/div/button[2]') charisma_up_xpath = ('//*[@id="content"]/wizard/div/div/div/wizard-ability' '-score-step/div/div/div[2]/div[1]/div[6]/div[2]/div/' 'div[2]/plus-minus/div[1]/div/button[1]') charisma_down_xpath = ('//*[@id="content"]/wizard/div/div/div/wizard-' 'ability-score-step/div/div/div[2]/div[1]/div[6]/' 'div[2]/div/div[2]/plus-minus/div[1]/div/button[2]') points_left = Element(xpath=points_left_xpath) strength_up = Element(xpath=strength_up_xpath) strength_down = Element(xpath=strength_down_xpath) dexterity_up = Element(xpath=dexterity_up_xpath) dexterity_down = Element(xpath=dexterity_down_xpath) constitution_up = Element(xpath=constitution_up_xpath) constitution_down = Element(xpath=constitution_down_xpath) intelligence_up = Element(xpath=intelligence_up_xpath) intelligence_down = Element(xpath=intelligence_down_xpath) wisdom_up = Element(xpath=wisdom_up_xpath) wisdom_down = Element(xpath=wisdom_down_xpath) charisma_up = Element(xpath=charisma_up_xpath) charisma_down = Element(xpath=charisma_down_xpath)
class WhoAreYou(Component): """Definition of wizard home component.""" character_name_id = 'whoAreYouCharacterNameInput' character_name_required_id = 'whoAreYouCharacterNameInputRequired' player_name_id = 'whoAreYouPlayerNameInput' player_name_required_id = 'whoAreYouPlayerNameInputRequired' alignment_id = 'whoAreYouAlignmentInput' deity_id = 'whoAreYouDeityInput' race_id = 'whoAreYouRaceInput' class_id = 'whoAreYouClassInput' gender_id = 'whoAreYouGenderInput' age_id = 'whoAreYouAgeInput' background_id = 'whoAreYouBackgroundInput' backpack_id = 'whoAreYouBackpackSelect' level_id = 'whoAreYouLevelInput' experience_id = 'whoAreYouExperienceInput' character_name = Element(id_=character_name_id) character_name_required = Element(id_=character_name_required_id) player_name = Element(id_=player_name_id) player_name_required = Element(id_=player_name_required_id) alignment = Element(id_=alignment_id) deity = Element(id_=deity_id) race = Element(id_=race_id) class_ = Element(id_=class_id) gender = Element(id_=gender_id) age = Element(id_=age_id) background = Element(id_=background_id) backpack = Element(id_=backpack_id) level = Element(id_=level_id) experience = Element(id_=experience_id)
class AbilityScoresManual(Component): """Definition of ability scoreswizard home componenet.""" strength_id = 'manualStrengthInput' strength_required_id = 'manualStrengthInputRequired' dexterity_id = 'manualDexterityInput' dexterity_required_id = 'manualDexterityInputRequired' constitution_id = 'manualConstitutionInput' constitution_required_id = 'manualConstitutionInputRequired' intelligence_id = 'manualIntelligenceInput' intelligence_required_id = 'manualIntelligenceInputRequired' wisdom_id = 'manualWisdomInput' wisdom_required_id = 'manualWisdomInputRequired' charisma_id = 'manualCharismaInput' charisma_required_id = 'manualCharismaInputRequired' strength = Element(id_=strength_id) strength_required = Element(id_=strength_required_id) dexterity = Element(id_=dexterity_id) dexterity_required = Element(id_=dexterity_required_id) constitution = Element(id_=constitution_id) constitution_required = Element(id_=constitution_required_id) intelligence = Element(id_=intelligence_id) intelligence_required = Element(id_=intelligence_required_id) wisdom = Element(id_=wisdom_id) wisdom_required = Element(id_=wisdom_required_id) charisma = Element(id_=charisma_id) charisma_required = Element(id_=charisma_required_id)