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

wd_demo.au3 - ability to repeat "UserFile" processing #464

Merged
merged 4 commits into from
Apr 26, 2023

Conversation

mlipok
Copy link
Contributor

@mlipok mlipok commented Apr 25, 2023

Pull request

Proposed changes

As I mention before: #462 (comment)

Checklist

  • I have read and noticed the CODE OF CONDUCT document
  • I have read and noticed the CONTRIBUTING document
  • I have added necessary documentation or screenshots (if appropriate)

Types of changes

  • Bugfix (change which fixes an issue)
  • Feature (change which adds functionality)
  • Code style update (formatting, renaming)
  • Refactoring (functional, structural)
  • Documentation content changes
  • Other (please describe)

What is the current behavior?

UserFile() process UserTesting.au3 only once and after processing close browser

What is the new behavior?

You can choose new or the same UserTesting.au3 and process them again without closing browser.

Additional context

Was tested with usertesting.au3 modified with this PR, and with separate usertesting_WD_GetContext.au3 which contains:

ConsoleWrite("! START" & @CRLF)

__SetVAR(0, "Absolute Identifiers > _WD_FrameEnter|Relative Identifiers > _WD_FrameEnter|IFRAME/FRAME attributes|URL|Body ElementID|IsHidden|MatchedElements")
ConsoleWrite("! 0 - $_VAR[0] = " & $_VAR[0] & @CRLF)

_Demo_NavigateCheckBanner($sSession, "https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_iframe", '//*[@id="snigel-cmp-framework" and @class="snigel-cmp-framework"]')
ConsoleWrite("! 1" & @CRLF)

__SetVAR(1, _WD_GetContext($sSession))
ConsoleWrite("! 2 _WD_GetContext >> " & $_VAR[1] & @CRLF)

__SetVAR(2, _WD_FrameList($sSession))
ConsoleWrite("! 3" & @CRLF)

_ArrayDisplay($_VAR[2], 'Starting', 0, 0, Default, $_VAR[0])
ConsoleWrite("! 4 - _ArrayDisplay" & @CRLF)

_WD_FrameEnter($sSession, 'null/0')
ConsoleWrite("! 5" & @CRLF)

__SetVAR(3, _WD_FrameList($sSession))
ConsoleWrite("! 6" & @CRLF)

_ArrayDisplay($_VAR[3], 'null/0', 0, 0, Default, $_VAR[0])
ConsoleWrite("! 7 - _ArrayDisplay" & @CRLF)

_WD_FrameEnter($sSession, $_VAR[1])
ConsoleWrite("! 8 after entering frame taken from _WD_GetContext()" & @CRLF)

__SetVAR(4, _WD_FrameList($sSession))
ConsoleWrite("! 9" & @CRLF)

_ArrayDisplay($_VAR[4], 'relative CONTEXT = ' & $_VAR[1], 0, 0, Default, $_VAR[0])
ConsoleWrite("! 10 - _ArrayDisplay" & @CRLF)

System under test

not related

@mlipok mlipok marked this pull request as ready for review April 25, 2023 21:51
usertesting.au3 Outdated Show resolved Hide resolved
wd_demo.au3 Outdated Show resolved Hide resolved
@mlipok
Copy link
Contributor Author

mlipok commented Apr 26, 2023

If no other comments .... I'm fine with this version, tested and works well.

@Danp2 Danp2 merged commit 0d1d27c into Danp2:master Apr 26, 2023
@mlipok mlipok deleted the ml__UserFile_repeat_processing branch April 26, 2023 12:15
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