-
Notifications
You must be signed in to change notification settings - Fork 0
/
util_xpath.py
30 lines (26 loc) · 1.14 KB
/
util_xpath.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
class Dados_Page_Xpath:
user_instagram_input = "//input[@name='username']"
password_instagram_input = "//input[@name='password']"
button_entrar_account = "//div[text()='Entrar']"
button_info_page_login_cancelar = "//div[text()='Agora não']"
button_pesquisa = "svg[aria-label='Pesquisa']"
publics_posts_list = "//div[@class='_aagw']"
publi_curtir = "//section[@class='_aamu _ae3_ _ae47 _ae48']//span[@class='_aamw']//div[@role='button']"
publi_check_curtida = "//section[@class='_aamu _ae3_ _ae47 _ae48']//span[@class='_aamw']//div[@role='button']//*[text()='Curtir']"
def __init__(
self,
username: str,
password: str,
account_find: str,
driver: vars,
):
self.username_accout_instagram = username
self.password_accout_instagram = password
self.accout_find = account_find
self.driver = driver
def account_instagram(self):
return self.username_accout_instagram, self.password_accout_instagram
def account_find_instagram(self):
return self.accout_find
def page_instagram(self, web_page):
return self.driver.get(web_page)