Skip to content

Commit

Permalink
fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasdcm committed Jan 22, 2025
1 parent 579913f commit 81bb067
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
3 changes: 3 additions & 0 deletions ferramentas/desktop/01_dogtail/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ source env/bin/activate
pip install -r ./dogtail/requirements.txt
python ./examples/gedit-test-utf8-procedural-api.py
```

Se rodando com Python 3.11+ pode ser que tenha que fazer [isso](https://gitlab.com/dogtail/dogtail/-/issues/37#note_2304763633)

O Gedit é aberto e um texto é copiado para dentro dele.<br>
Outro exemplo agora usando um framework de testes:
```
Expand Down
14 changes: 0 additions & 14 deletions padroes_de_projeto/test_page_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,3 @@ def test_vpm_transaction_chain(self):
home.DoExpandedSearch, text=text, wait_for=expanded_similarity
).asserts(it.IsEqualTo, expanded_similarity)
self._app.at(home.NavigateTo).asserts(it.IsEqualTo, content_in_english)


@pytest.fixture
def setup_application():
configuration = {
"url": "https://vagaspramim.onrender.com/",
"window_width": 1094,
"window_hight": 765,
"implicitly_wait": 0.5,
}
app = Application(webdriver.Chrome())
app.at(setup.OpenApp, **configuration)
yield app
app.at(setup.CloseApp)

0 comments on commit 81bb067

Please sign in to comment.