Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Daksha Download & Read functionality. #59

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rchetan98
Copy link
Contributor

@rchetan98 rchetan98 commented Jun 13, 2023

Description

Motivation and Context

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I have added tests to cover my changes.
  • My change requires a change to the documentation.
  • I have Extended README or added documentation/comments where applicable
  • Added copyright headers for new files from CONTRIBUTING.md
  • My code follows the code style of this project.

*version*: `2.3.0`

## v2.3.0
1. Added files download functionality to Daksha
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add Download_path value here

# waiting for download to complete
while wait:
files = glob.glob(download_path + "/*")
downloaded_file = max(files, key=os.path.getctime)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will break if 2 tests with same uuid (in case of folder execution) runs and download_file is run at the same time

element = WebDriverWait(test_executor.web_driver, 10).until(
EC.visibility_of_element_located((locator, locator_value))
)
element.click()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If download confirmation page is present thenn this won't work

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Explore browser settings

engine/selenium_helper.py Show resolved Hide resolved
engine/selenium_helper.py Show resolved Hide resolved
engine/selenium_helper.py Show resolved Hide resolved
engine/selenium_helper.py Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants