Files
AccountForger-neuerUpload/social_networks/vk/vk_selectors.py
Claude Project Manager 04585e95b6 Initial commit
2025-08-01 23:50:28 +02:00

51 Zeilen
1.6 KiB
Python

"""
VK UI Selektoren und URLs
"""
# URLs
BASE_URL = "https://vk.com/"
REGISTRATION_URL = "https://vk.com/join"
LOGIN_URL = "https://vk.com/login"
# Startseite
CREATE_ACCOUNT_BUTTON = "span.vkuiButton__content:has-text('Konto erstellen')"
CREATE_ACCOUNT_BUTTON_XPATH = "//span[@class='vkuiButton__content' and text()='Konto erstellen']"
CREATE_ACCOUNT_BUTTON_ALTERNATE = "button:has-text('Konto erstellen')"
# Login Seite
LOGIN_EMAIL_INPUT = "input[name='email']"
LOGIN_PASSWORD_INPUT = "input[name='password']"
LOGIN_SUBMIT_BUTTON = "button[type='submit']"
# Registrierungsformular
REGISTRATION_FIRST_NAME = "input[name='first_name']"
REGISTRATION_LAST_NAME = "input[name='last_name']"
REGISTRATION_BIRTHDAY_DAY = "select[name='bday']"
REGISTRATION_BIRTHDAY_MONTH = "select[name='bmonth']"
REGISTRATION_BIRTHDAY_YEAR = "select[name='byear']"
REGISTRATION_GENDER_MALE = "input[value='2']"
REGISTRATION_GENDER_FEMALE = "input[value='1']"
REGISTRATION_CONTINUE_BUTTON = "button[type='submit']"
# Telefonnummer Verifizierung
PHONE_INPUT = "input[name='phone']"
PHONE_COUNTRY_CODE = "div.PhoneInput__countryCode"
PHONE_SUBMIT_BUTTON = "button[type='submit']"
# SMS Verifizierung
SMS_CODE_INPUT = "input[name='code']"
SMS_SUBMIT_BUTTON = "button[type='submit']"
SMS_RESEND_LINK = "a:has-text('Code erneut senden')"
# Captcha
CAPTCHA_IMAGE = "img.vkc__Captcha__image"
CAPTCHA_INPUT = "input[name='captcha']"
# Fehler- und Erfolgsmeldungen
ERROR_MESSAGE = "div.error"
SUCCESS_MESSAGE = "div.success"
PHONE_ERROR = "div.phone_error"
# Cookies Banner
COOKIE_ACCEPT_BUTTON = "button:has-text('Akzeptieren')"
COOKIE_BANNER = "div[class*='cookie']"