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.
@@ -1,139 +1,141 @@
1
- Metadata-Version: 2.1
2
- Name: seleniumUts
3
- Version: 1.0.0
4
- Summary: Zdek Util libraries for Pythom coding
5
- Home-page: https://github.com/SymplaAutomate/selenium-lib
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
- # SeleniumUts
20
-
21
- 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.
22
-
23
- ## Uso
24
-
25
- ### Importando a Biblioteca
26
-
27
- ```python
28
- from seleniumUts import SeleniumUts
29
- ```
30
-
31
- ### Criando uma Instância de `SeleniumUts`
32
-
33
- ```python
34
- selenium_lib = SeleniumUts()
35
- ```
36
-
37
- ### Exemplos de Uso
38
-
39
- #### Configurando o Selenium com ChromeDriver
40
-
41
- ```python
42
- # Configure o Selenium sem usar o Selenoid
43
- selenium_lib.setupSelenium(host=None, use_selenoid=False)
44
-
45
- # Abrir uma página web
46
- driver = selenium_lib.open_page('https://www.example.com')
47
-
48
- # Fechar o navegador
49
- selenium_lib.close()
50
- ```
51
-
52
- #### Configurando o Selenium com Selenoid
53
-
54
- ```python
55
- # Configure o Selenium usando o Selenoid
56
- selenoid_host = 'http://your-selenoid-server.com/wd/hub'
57
- selenium_lib.setupSelenium(host=selenoid_host, use_selenoid=True)
58
-
59
- # Abrir uma página web
60
- driver = selenium_lib.open_page('https://www.example.com')
61
-
62
- # Fechar o navegador
63
- selenium_lib.close()
64
- ```
65
-
66
- #### Aguardando a Visibilidade de um Elemento
67
-
68
- ```python
69
- # Configure o Selenium
70
- selenium_lib.setupSelenium(host=None, use_selenoid=False)
71
-
72
- # Abrir uma página web
73
- selenium_lib.open_page('https://www.example.com')
74
-
75
- # Esperar até que o elemento esteja visível
76
- element = selenium_lib.wait_xpath('//button[@id="submit"]', time=10)
77
- element.click()
78
-
79
- # Fechar o navegador
80
- selenium_lib.close()
81
- ```
82
-
83
- #### Envio de Texto com Atraso entre Caracteres
84
-
85
- ```python
86
- # Configure o Selenium
87
- selenium_lib.setupSelenium(host=None, use_selenoid=False)
88
-
89
- # Abrir uma página web
90
- selenium_lib.open_page('https://www.example.com')
91
-
92
- # Encontrar o campo de texto e enviar texto com atraso
93
- element = selenium_lib.wait_xpath('//input[@id="search-box"]')
94
- element.delayed_send('Python Selenium', delay=0.2)
95
-
96
- # Fechar o navegador
97
- selenium_lib.close()
98
- ```
99
-
100
- #### Rolagem até o Fim da Página
101
-
102
- ```python
103
- # Configure o Selenium
104
- selenium_lib.setupSelenium(host=None, use_selenoid=False)
105
-
106
- # Abrir uma página web
107
- selenium_lib.open_page('https://www.example.com')
108
-
109
- # Rolagem até o fim da página
110
- selenium_lib.scroll_end()
111
-
112
- # Fechar o navegador
113
- selenium_lib.close()
114
- ```
115
-
116
- ## Métodos Disponíveis
117
-
118
- - **`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.
119
- - **`open_page(page)`**: Abre uma página web e espera até que ela seja totalmente carregada.
120
- - **`wait_xpath(path, time=20, throw=True)`**: Aguarda até que um elemento, identificado por um caminho XPath, esteja visível no DOM.
121
- - **`<el>.delayed_send(word, delay)`**: Envia texto para um elemento, inserindo um atraso especificado entre cada caractere.
122
- - **`scroll_end()`**: Rola até o final da página atual.
123
- - **`close()`**: Fecha o navegador e encerra a sessão do WebDriver.
124
-
125
- ## Contribuição
126
-
127
- Contribuições são bem-vindas! Por favor, envie um pull request ou abra uma issue para quaisquer problemas ou melhorias.
128
-
129
- ## Licença
130
-
131
- Este projeto está licenciado sob a licença MIT.
132
-
133
-
134
- Change Log
135
- ==========
136
-
137
- 1.0.0 (2025-12-09)
138
- ------------------
139
- - First Release
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.