Skip to content

Commit

Permalink
test: fix failed test due to element obscured
Browse files Browse the repository at this point in the history
Signed-off-by: Viet Nguyen Duc <[email protected]>
  • Loading branch information
VietND96 committed Feb 22, 2024
1 parent 8a74c47 commit b72e144
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/SeleniumTests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ def test_download_file(self):
file_link = wait.until(
EC.element_to_be_clickable((By.LINK_TEXT, file_name))
)
driver.execute_script("arguments[0].scrollIntoView();", file_link)
file_link.click()
wait.until(
lambda d: str(d.get_downloadable_files()[0]).endswith(file_name)
Expand Down
2 changes: 1 addition & 1 deletion tests/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [ "${CI:-false}" = "false" ]; then
source docker-selenium-tests/bin/activate
fi

python -m pip install selenium==4.18.0 \
python -m pip install selenium==4.18.1 \
docker===6.1.3 \
| grep -v 'Requirement already satisfied'

Expand Down

0 comments on commit b72e144

Please sign in to comment.