forked from NBO2001/Automatizador-de-rotina
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathseach_box.py
41 lines (16 loc) · 966 Bytes
/
seach_box.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
31
32
33
34
35
36
from time import sleep
import utils
class Seach_Box():
def __init__(self, selin, cod):
self.cods = selin.driver.find_element_by_xpath("//mat-form-field[1]/div/div/div[@class='mat-form-field-infix']/input")
self.cods.send_keys(cod)
self.type_button = selin.driver.find_element_by_xpath("//mat-form-field[3]/div/div/div[@class='mat-form-field-infix']/mat-select")
self.type_button.click()
if utils.is_load_select(selin):
utils.option_select(selin, "Caixa").click()
self.client = selin.driver.find_element_by_xpath("//mat-form-field[4]/div/div/div[@class='mat-form-field-infix']/mat-select")
self.client.click()
if utils.is_load_select(selin):
utils.option_select(selin, selin.getClient()).click()
self.seach = selin.driver.find_element_by_xpath("//div[@class='button-seach']/button")
self.seach.click()