SeleniumUts
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.
Uso
Importando a Biblioteca
from seleniumUts import SeleniumUts
Criando uma Instância de SeleniumUts
selenium_lib = SeleniumUts()
Exemplos de Uso
Configurando o Selenium com ChromeDriver
# Configure o Selenium sem usar o Selenoid
selenium_lib.setupSelenium(host=None, use_selenoid=False)
# Abrir uma página web
driver = selenium_lib.open_page('https://www.example.com')
# Fechar o navegador
selenium_lib.close()
Configurando o Selenium com Selenoid
# Configure o Selenium usando o Selenoid
selenoid_host = 'http://your-selenoid-server.com/wd/hub'
selenium_lib.setupSelenium(host=selenoid_host, use_selenoid=True)
# Abrir uma página web
driver = selenium_lib.open_page('https://www.example.com')
# Fechar o navegador
selenium_lib.close()
Aguardando a Visibilidade de um Elemento
# Configure o Selenium
selenium_lib.setupSelenium(host=None, use_selenoid=False)
# Abrir uma página web
selenium_lib.open_page('https://www.example.com')
# Esperar até que o elemento esteja visível
element = selenium_lib.wait_xpath('//button[@id="submit"]', time=10)
element.click()
# Fechar o navegador
selenium_lib.close()
Envio de Texto com Atraso entre Caracteres
# Configure o Selenium
selenium_lib.setupSelenium(host=None, use_selenoid=False)
# Abrir uma página web
selenium_lib.open_page('https://www.example.com')
# Encontrar o campo de texto e enviar texto com atraso
element = selenium_lib.wait_xpath('//input[@id="search-box"]')
element.delayed_send('Python Selenium', delay=0.2)
# Fechar o navegador
selenium_lib.close()
Rolagem até o Fim da Página
# Configure o Selenium
selenium_lib.setupSelenium(host=None, use_selenoid=False)
# Abrir uma página web
selenium_lib.open_page('https://www.example.com')
# Rolagem até o fim da página
selenium_lib.scroll_end()
# Fechar o navegador
selenium_lib.close()
Métodos Disponíveis
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.open_page(page): Abre uma página web e espera até que ela seja totalmente carregada.wait_xpath(path, time=20, throw=True): Aguarda até que um elemento, identificado por um caminho XPath, esteja visível no DOM.<el>.delayed_send(word, delay): Envia texto para um elemento, inserindo um atraso especificado entre cada caractere.scroll_end(): Rola até o final da página atual.close(): Fecha o navegador e encerra a sessão do WebDriver.
Contribuição
Contribuições são bem-vindas! Por favor, envie um pull request ou abra uma issue para quaisquer problemas ou melhorias.
Licença
Este projeto está licenciado sob a licença MIT.
Metadata
Release files for seleniumUts 1.2.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| seleniumuts-1.2.13.tar.gz | 14.5 kB | With provenance | Details for seleniumuts-1.2.13.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| seleniumuts-1.2.13-py3-none-any.whl | Python 3 | none | any | Details for seleniumuts-1.2.13-py3-none-any.whl |
Total release size: 29.2 kB
Release files / seleniumuts-1.2.13.tar.gz
| Download URL | seleniumuts-1.2.13.tar.gz |
|---|---|
| Size | 14.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1754a998537ef8428473828991642c10dea932c0df2d301bb9c5ab9ca2b69783
|
|
BLAKE2b-256 checksum How to use checksums |
2ee037886486de11351115dfedd95b6358fffabde2f0a340e9efaab1596d349f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 20, 2026.
Transparency logRelease files / seleniumuts-1.2.13-py3-none-any.whl
| Download URL | seleniumuts-1.2.13-py3-none-any.whl |
|---|---|
| Size | 14.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e096b215395b0861890459c137ebcd5d1197dcd45460ba59365141d8e6aeba8b
|
|
BLAKE2b-256 checksum How to use checksums |
9af8942a395f19f2585d328f5ad4fdc10b1e0a7f76238de4ccb6f7ba176fc2a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 20, 2026.
Transparency logSecurity for seleniumUts 1.2.13
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for seleniumuts-1.2.13.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 20, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.