seleniumUts 1.0.0__tar.gz → 1.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {seleniumuts-1.0.0 → seleniumuts-1.1.1}/PKG-INFO +141 -139
- {seleniumuts-1.0.0 → seleniumuts-1.1.1}/README.md +113 -113
- seleniumuts-1.1.1/seleniumUts/__init__.py +697 -0
- seleniumuts-1.1.1/seleniumUts/custom_driver.py +44 -0
- seleniumuts-1.1.1/seleniumUts/seleniumuts.py +0 -0
- seleniumuts-1.1.1/seleniumUts/webelement.py +43 -0
- {seleniumuts-1.0.0 → seleniumuts-1.1.1}/seleniumUts.egg-info/PKG-INFO +141 -139
- {seleniumuts-1.0.0 → seleniumuts-1.1.1}/seleniumUts.egg-info/SOURCES.txt +3 -0
- {seleniumuts-1.0.0 → seleniumuts-1.1.1}/setup.cfg +4 -4
- seleniumuts-1.1.1/setup.py +25 -0
- seleniumuts-1.0.0/seleniumUts/__init__.py +0 -184
- seleniumuts-1.0.0/setup.py +0 -28
- {seleniumuts-1.0.0 → seleniumuts-1.1.1}/seleniumUts.egg-info/dependency_links.txt +0 -0
- {seleniumuts-1.0.0 → seleniumuts-1.1.1}/seleniumUts.egg-info/requires.txt +0 -0
- {seleniumuts-1.0.0 → seleniumuts-1.1.1}/seleniumUts.egg-info/top_level.txt +0 -0
|
@@ -1,139 +1,141 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
2
|
-
Name: seleniumUts
|
|
3
|
-
Version: 1.
|
|
4
|
-
Summary: Zdek Util libraries for Pythom coding
|
|
5
|
-
Home-page: https://github.com/
|
|
6
|
-
Author: Zdek Development team
|
|
7
|
-
License: MIT
|
|
8
|
-
Keywords: seleniumUts
|
|
9
|
-
Classifier: Development Status :: 5 - Production/Stable
|
|
10
|
-
Classifier: Intended Audience :: Education
|
|
11
|
-
Classifier: Operating System :: Microsoft :: Windows :: Windows 10
|
|
12
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
13
|
-
Classifier: Programming Language :: Python :: 3
|
|
14
|
-
Requires-Python: >=3.10
|
|
15
|
-
Description-Content-Type: text/markdown
|
|
16
|
-
Requires-Dist: undetected-chromedriver>=3.5.5
|
|
17
|
-
Requires-Dist: selenium>=4.15.2
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
#
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
#
|
|
70
|
-
selenium_lib.
|
|
71
|
-
|
|
72
|
-
#
|
|
73
|
-
selenium_lib.
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
#
|
|
80
|
-
selenium_lib.
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
#
|
|
90
|
-
selenium_lib.
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
#
|
|
97
|
-
selenium_lib.
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
#
|
|
107
|
-
selenium_lib.
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: seleniumUts
|
|
3
|
+
Version: 1.1.1
|
|
4
|
+
Summary: Zdek Util libraries for Pythom coding
|
|
5
|
+
Home-page: https://github.com/ZdekPyPi/SeleniumUts
|
|
6
|
+
Author: Zdek Development team
|
|
7
|
+
License: MIT
|
|
8
|
+
Keywords: seleniumUts
|
|
9
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
10
|
+
Classifier: Intended Audience :: Education
|
|
11
|
+
Classifier: Operating System :: Microsoft :: Windows :: Windows 10
|
|
12
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Requires-Python: >=3.10
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
Requires-Dist: undetected-chromedriver>=3.5.5
|
|
17
|
+
Requires-Dist: selenium>=4.15.2
|
|
18
|
+
Dynamic: author
|
|
19
|
+
Dynamic: classifier
|
|
20
|
+
Dynamic: description
|
|
21
|
+
Dynamic: description-content-type
|
|
22
|
+
Dynamic: home-page
|
|
23
|
+
Dynamic: keywords
|
|
24
|
+
Dynamic: license
|
|
25
|
+
Dynamic: requires-dist
|
|
26
|
+
Dynamic: requires-python
|
|
27
|
+
Dynamic: summary
|
|
28
|
+
|
|
29
|
+
# SeleniumUts
|
|
30
|
+
|
|
31
|
+
Uma biblioteca Python que encapsula algumas funcionalidades do Selenium WebDriver, facilitando a automação de navegadores para testes e raspagem de dados. A biblioteca suporta o uso do `undetected_chromedriver` e integra-se facilmente com o Selenoid para execução de testes em ambientes distribuídos.
|
|
32
|
+
|
|
33
|
+
## Uso
|
|
34
|
+
|
|
35
|
+
### Importando a Biblioteca
|
|
36
|
+
|
|
37
|
+
```python
|
|
38
|
+
from seleniumUts import SeleniumUts
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Criando uma Instância de `SeleniumUts`
|
|
42
|
+
|
|
43
|
+
```python
|
|
44
|
+
selenium_lib = SeleniumUts()
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Exemplos de Uso
|
|
48
|
+
|
|
49
|
+
#### Configurando o Selenium com ChromeDriver
|
|
50
|
+
|
|
51
|
+
```python
|
|
52
|
+
# Configure o Selenium sem usar o Selenoid
|
|
53
|
+
selenium_lib.setupSelenium(host=None, use_selenoid=False)
|
|
54
|
+
|
|
55
|
+
# Abrir uma página web
|
|
56
|
+
driver = selenium_lib.open_page('https://www.example.com')
|
|
57
|
+
|
|
58
|
+
# Fechar o navegador
|
|
59
|
+
selenium_lib.close()
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
#### Configurando o Selenium com Selenoid
|
|
63
|
+
|
|
64
|
+
```python
|
|
65
|
+
# Configure o Selenium usando o Selenoid
|
|
66
|
+
selenoid_host = 'http://your-selenoid-server.com/wd/hub'
|
|
67
|
+
selenium_lib.setupSelenium(host=selenoid_host, use_selenoid=True)
|
|
68
|
+
|
|
69
|
+
# Abrir uma página web
|
|
70
|
+
driver = selenium_lib.open_page('https://www.example.com')
|
|
71
|
+
|
|
72
|
+
# Fechar o navegador
|
|
73
|
+
selenium_lib.close()
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
#### Aguardando a Visibilidade de um Elemento
|
|
77
|
+
|
|
78
|
+
```python
|
|
79
|
+
# Configure o Selenium
|
|
80
|
+
selenium_lib.setupSelenium(host=None, use_selenoid=False)
|
|
81
|
+
|
|
82
|
+
# Abrir uma página web
|
|
83
|
+
selenium_lib.open_page('https://www.example.com')
|
|
84
|
+
|
|
85
|
+
# Esperar até que o elemento esteja visível
|
|
86
|
+
element = selenium_lib.wait_xpath('//button[@id="submit"]', time=10)
|
|
87
|
+
element.click()
|
|
88
|
+
|
|
89
|
+
# Fechar o navegador
|
|
90
|
+
selenium_lib.close()
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
#### Envio de Texto com Atraso entre Caracteres
|
|
94
|
+
|
|
95
|
+
```python
|
|
96
|
+
# Configure o Selenium
|
|
97
|
+
selenium_lib.setupSelenium(host=None, use_selenoid=False)
|
|
98
|
+
|
|
99
|
+
# Abrir uma página web
|
|
100
|
+
selenium_lib.open_page('https://www.example.com')
|
|
101
|
+
|
|
102
|
+
# Encontrar o campo de texto e enviar texto com atraso
|
|
103
|
+
element = selenium_lib.wait_xpath('//input[@id="search-box"]')
|
|
104
|
+
element.delayed_send('Python Selenium', delay=0.2)
|
|
105
|
+
|
|
106
|
+
# Fechar o navegador
|
|
107
|
+
selenium_lib.close()
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
#### Rolagem até o Fim da Página
|
|
111
|
+
|
|
112
|
+
```python
|
|
113
|
+
# Configure o Selenium
|
|
114
|
+
selenium_lib.setupSelenium(host=None, use_selenoid=False)
|
|
115
|
+
|
|
116
|
+
# Abrir uma página web
|
|
117
|
+
selenium_lib.open_page('https://www.example.com')
|
|
118
|
+
|
|
119
|
+
# Rolagem até o fim da página
|
|
120
|
+
selenium_lib.scroll_end()
|
|
121
|
+
|
|
122
|
+
# Fechar o navegador
|
|
123
|
+
selenium_lib.close()
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
## Métodos Disponíveis
|
|
127
|
+
|
|
128
|
+
- **`setupSelenium(host, name="default", use_selenoid=False, cust_opt=[], remove_default_options=False, download_path=None, selenoid_browser=("chrome","110.0"))`**: Configura o WebDriver do Selenium com opções personalizadas e preferências para o ChromeDriver. Suporta configuração para Selenoid.
|
|
129
|
+
- **`open_page(page)`**: Abre uma página web e espera até que ela seja totalmente carregada.
|
|
130
|
+
- **`wait_xpath(path, time=20, throw=True)`**: Aguarda até que um elemento, identificado por um caminho XPath, esteja visível no DOM.
|
|
131
|
+
- **`<el>.delayed_send(word, delay)`**: Envia texto para um elemento, inserindo um atraso especificado entre cada caractere.
|
|
132
|
+
- **`scroll_end()`**: Rola até o final da página atual.
|
|
133
|
+
- **`close()`**: Fecha o navegador e encerra a sessão do WebDriver.
|
|
134
|
+
|
|
135
|
+
## Contribuição
|
|
136
|
+
|
|
137
|
+
Contribuições são bem-vindas! Por favor, envie um pull request ou abra uma issue para quaisquer problemas ou melhorias.
|
|
138
|
+
|
|
139
|
+
## Licença
|
|
140
|
+
|
|
141
|
+
Este projeto está licenciado sob a licença MIT.
|
|
@@ -1,113 +1,113 @@
|
|
|
1
|
-
# SeleniumUts
|
|
2
|
-
|
|
3
|
-
Uma biblioteca Python que encapsula algumas funcionalidades do Selenium WebDriver, facilitando a automação de navegadores para testes e raspagem de dados. A biblioteca suporta o uso do `undetected_chromedriver` e integra-se facilmente com o Selenoid para execução de testes em ambientes distribuídos.
|
|
4
|
-
|
|
5
|
-
## Uso
|
|
6
|
-
|
|
7
|
-
### Importando a Biblioteca
|
|
8
|
-
|
|
9
|
-
```python
|
|
10
|
-
from seleniumUts import SeleniumUts
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
### Criando uma Instância de `SeleniumUts`
|
|
14
|
-
|
|
15
|
-
```python
|
|
16
|
-
selenium_lib = SeleniumUts()
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
### Exemplos de Uso
|
|
20
|
-
|
|
21
|
-
#### Configurando o Selenium com ChromeDriver
|
|
22
|
-
|
|
23
|
-
```python
|
|
24
|
-
# Configure o Selenium sem usar o Selenoid
|
|
25
|
-
selenium_lib.setupSelenium(host=None, use_selenoid=False)
|
|
26
|
-
|
|
27
|
-
# Abrir uma página web
|
|
28
|
-
driver = selenium_lib.open_page('https://www.example.com')
|
|
29
|
-
|
|
30
|
-
# Fechar o navegador
|
|
31
|
-
selenium_lib.close()
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
#### Configurando o Selenium com Selenoid
|
|
35
|
-
|
|
36
|
-
```python
|
|
37
|
-
# Configure o Selenium usando o Selenoid
|
|
38
|
-
selenoid_host = 'http://your-selenoid-server.com/wd/hub'
|
|
39
|
-
selenium_lib.setupSelenium(host=selenoid_host, use_selenoid=True)
|
|
40
|
-
|
|
41
|
-
# Abrir uma página web
|
|
42
|
-
driver = selenium_lib.open_page('https://www.example.com')
|
|
43
|
-
|
|
44
|
-
# Fechar o navegador
|
|
45
|
-
selenium_lib.close()
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
#### Aguardando a Visibilidade de um Elemento
|
|
49
|
-
|
|
50
|
-
```python
|
|
51
|
-
# Configure o Selenium
|
|
52
|
-
selenium_lib.setupSelenium(host=None, use_selenoid=False)
|
|
53
|
-
|
|
54
|
-
# Abrir uma página web
|
|
55
|
-
selenium_lib.open_page('https://www.example.com')
|
|
56
|
-
|
|
57
|
-
# Esperar até que o elemento esteja visível
|
|
58
|
-
element = selenium_lib.wait_xpath('//button[@id="submit"]', time=10)
|
|
59
|
-
element.click()
|
|
60
|
-
|
|
61
|
-
# Fechar o navegador
|
|
62
|
-
selenium_lib.close()
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
#### Envio de Texto com Atraso entre Caracteres
|
|
66
|
-
|
|
67
|
-
```python
|
|
68
|
-
# Configure o Selenium
|
|
69
|
-
selenium_lib.setupSelenium(host=None, use_selenoid=False)
|
|
70
|
-
|
|
71
|
-
# Abrir uma página web
|
|
72
|
-
selenium_lib.open_page('https://www.example.com')
|
|
73
|
-
|
|
74
|
-
# Encontrar o campo de texto e enviar texto com atraso
|
|
75
|
-
element = selenium_lib.wait_xpath('//input[@id="search-box"]')
|
|
76
|
-
element.delayed_send('Python Selenium', delay=0.2)
|
|
77
|
-
|
|
78
|
-
# Fechar o navegador
|
|
79
|
-
selenium_lib.close()
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
#### Rolagem até o Fim da Página
|
|
83
|
-
|
|
84
|
-
```python
|
|
85
|
-
# Configure o Selenium
|
|
86
|
-
selenium_lib.setupSelenium(host=None, use_selenoid=False)
|
|
87
|
-
|
|
88
|
-
# Abrir uma página web
|
|
89
|
-
selenium_lib.open_page('https://www.example.com')
|
|
90
|
-
|
|
91
|
-
# Rolagem até o fim da página
|
|
92
|
-
selenium_lib.scroll_end()
|
|
93
|
-
|
|
94
|
-
# Fechar o navegador
|
|
95
|
-
selenium_lib.close()
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
## Métodos Disponíveis
|
|
99
|
-
|
|
100
|
-
- **`setupSelenium(host, name="default", use_selenoid=False, cust_opt=[], remove_default_options=False, download_path=None, selenoid_browser=("chrome","110.0"))`**: Configura o WebDriver do Selenium com opções personalizadas e preferências para o ChromeDriver. Suporta configuração para Selenoid.
|
|
101
|
-
- **`open_page(page)`**: Abre uma página web e espera até que ela seja totalmente carregada.
|
|
102
|
-
- **`wait_xpath(path, time=20, throw=True)`**: Aguarda até que um elemento, identificado por um caminho XPath, esteja visível no DOM.
|
|
103
|
-
- **`<el>.delayed_send(word, delay)`**: Envia texto para um elemento, inserindo um atraso especificado entre cada caractere.
|
|
104
|
-
- **`scroll_end()`**: Rola até o final da página atual.
|
|
105
|
-
- **`close()`**: Fecha o navegador e encerra a sessão do WebDriver.
|
|
106
|
-
|
|
107
|
-
## Contribuição
|
|
108
|
-
|
|
109
|
-
Contribuições são bem-vindas! Por favor, envie um pull request ou abra uma issue para quaisquer problemas ou melhorias.
|
|
110
|
-
|
|
111
|
-
## Licença
|
|
112
|
-
|
|
113
|
-
Este projeto está licenciado sob a licença MIT.
|
|
1
|
+
# SeleniumUts
|
|
2
|
+
|
|
3
|
+
Uma biblioteca Python que encapsula algumas funcionalidades do Selenium WebDriver, facilitando a automação de navegadores para testes e raspagem de dados. A biblioteca suporta o uso do `undetected_chromedriver` e integra-se facilmente com o Selenoid para execução de testes em ambientes distribuídos.
|
|
4
|
+
|
|
5
|
+
## Uso
|
|
6
|
+
|
|
7
|
+
### Importando a Biblioteca
|
|
8
|
+
|
|
9
|
+
```python
|
|
10
|
+
from seleniumUts import SeleniumUts
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
### Criando uma Instância de `SeleniumUts`
|
|
14
|
+
|
|
15
|
+
```python
|
|
16
|
+
selenium_lib = SeleniumUts()
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### Exemplos de Uso
|
|
20
|
+
|
|
21
|
+
#### Configurando o Selenium com ChromeDriver
|
|
22
|
+
|
|
23
|
+
```python
|
|
24
|
+
# Configure o Selenium sem usar o Selenoid
|
|
25
|
+
selenium_lib.setupSelenium(host=None, use_selenoid=False)
|
|
26
|
+
|
|
27
|
+
# Abrir uma página web
|
|
28
|
+
driver = selenium_lib.open_page('https://www.example.com')
|
|
29
|
+
|
|
30
|
+
# Fechar o navegador
|
|
31
|
+
selenium_lib.close()
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
#### Configurando o Selenium com Selenoid
|
|
35
|
+
|
|
36
|
+
```python
|
|
37
|
+
# Configure o Selenium usando o Selenoid
|
|
38
|
+
selenoid_host = 'http://your-selenoid-server.com/wd/hub'
|
|
39
|
+
selenium_lib.setupSelenium(host=selenoid_host, use_selenoid=True)
|
|
40
|
+
|
|
41
|
+
# Abrir uma página web
|
|
42
|
+
driver = selenium_lib.open_page('https://www.example.com')
|
|
43
|
+
|
|
44
|
+
# Fechar o navegador
|
|
45
|
+
selenium_lib.close()
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
#### Aguardando a Visibilidade de um Elemento
|
|
49
|
+
|
|
50
|
+
```python
|
|
51
|
+
# Configure o Selenium
|
|
52
|
+
selenium_lib.setupSelenium(host=None, use_selenoid=False)
|
|
53
|
+
|
|
54
|
+
# Abrir uma página web
|
|
55
|
+
selenium_lib.open_page('https://www.example.com')
|
|
56
|
+
|
|
57
|
+
# Esperar até que o elemento esteja visível
|
|
58
|
+
element = selenium_lib.wait_xpath('//button[@id="submit"]', time=10)
|
|
59
|
+
element.click()
|
|
60
|
+
|
|
61
|
+
# Fechar o navegador
|
|
62
|
+
selenium_lib.close()
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
#### Envio de Texto com Atraso entre Caracteres
|
|
66
|
+
|
|
67
|
+
```python
|
|
68
|
+
# Configure o Selenium
|
|
69
|
+
selenium_lib.setupSelenium(host=None, use_selenoid=False)
|
|
70
|
+
|
|
71
|
+
# Abrir uma página web
|
|
72
|
+
selenium_lib.open_page('https://www.example.com')
|
|
73
|
+
|
|
74
|
+
# Encontrar o campo de texto e enviar texto com atraso
|
|
75
|
+
element = selenium_lib.wait_xpath('//input[@id="search-box"]')
|
|
76
|
+
element.delayed_send('Python Selenium', delay=0.2)
|
|
77
|
+
|
|
78
|
+
# Fechar o navegador
|
|
79
|
+
selenium_lib.close()
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
#### Rolagem até o Fim da Página
|
|
83
|
+
|
|
84
|
+
```python
|
|
85
|
+
# Configure o Selenium
|
|
86
|
+
selenium_lib.setupSelenium(host=None, use_selenoid=False)
|
|
87
|
+
|
|
88
|
+
# Abrir uma página web
|
|
89
|
+
selenium_lib.open_page('https://www.example.com')
|
|
90
|
+
|
|
91
|
+
# Rolagem até o fim da página
|
|
92
|
+
selenium_lib.scroll_end()
|
|
93
|
+
|
|
94
|
+
# Fechar o navegador
|
|
95
|
+
selenium_lib.close()
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Métodos Disponíveis
|
|
99
|
+
|
|
100
|
+
- **`setupSelenium(host, name="default", use_selenoid=False, cust_opt=[], remove_default_options=False, download_path=None, selenoid_browser=("chrome","110.0"))`**: Configura o WebDriver do Selenium com opções personalizadas e preferências para o ChromeDriver. Suporta configuração para Selenoid.
|
|
101
|
+
- **`open_page(page)`**: Abre uma página web e espera até que ela seja totalmente carregada.
|
|
102
|
+
- **`wait_xpath(path, time=20, throw=True)`**: Aguarda até que um elemento, identificado por um caminho XPath, esteja visível no DOM.
|
|
103
|
+
- **`<el>.delayed_send(word, delay)`**: Envia texto para um elemento, inserindo um atraso especificado entre cada caractere.
|
|
104
|
+
- **`scroll_end()`**: Rola até o final da página atual.
|
|
105
|
+
- **`close()`**: Fecha o navegador e encerra a sessão do WebDriver.
|
|
106
|
+
|
|
107
|
+
## Contribuição
|
|
108
|
+
|
|
109
|
+
Contribuições são bem-vindas! Por favor, envie um pull request ou abra uma issue para quaisquer problemas ou melhorias.
|
|
110
|
+
|
|
111
|
+
## Licença
|
|
112
|
+
|
|
113
|
+
Este projeto está licenciado sob a licença MIT.
|