-
Notifications
You must be signed in to change notification settings - Fork 23
_WD_ElementSelectAction + SINGLESELECT #367
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_ElementSelectAction + SINGLESELECT #367
Conversation
|
No idea what you are trying to say here
That's fine. I'm assuming that you've tested your changes to be sure that the code continues to work as before. 🤨 |
recently JS was returning only |
on my own website yes. btw. |
checked with: DemoSelectOptions() refactoring + new features btw: |
as to: added waschanged Lines 1018 to 1028 in 1d585c0
can be a case when element is I think that |
Did you consider issuing the command |
In this scenario we will have problem that selecting the single |
Isn't that already occurring here because Lines 1025 to 1028 in 1d585c0
|
fixed here: DeselectingNonListedLabels > AllowMultiple |
As for me all is OK |
* _WD_ElementSelectAction 'selectedOptions' group (#375) * _WD_ElementSelectAction 'options' added group name (#374) * _WD_ElementSelectAction 'selectAll' JS validation (#373) * _WD_ElementSelectAction 'selectedLabels' JS refact (#376) * _WD_ElementSelectAction + SINGLESELECT (#367) * _ElementSelectAction : JS refactoring + case insensivity (#381) * Return result from `selectAll` * selectAll + $_WD_ERROR_NoMatch
Pull request
Proposed changes
This PR add feature to easily select single
<option>
element by its labelChecklist
Put an
x
in the boxes that apply. If you're unsure about any of them, don't hesitate to ask. We are here to help!This is simply a reminder of what we are going to look for before merging your code.
Types of changes
Please check
x
the type of change your PR introduces:What is the current behavior?
no way for easy way to select single option by LabelName
What is the new behavior?
can be easily done with
Additionally
_WD_ExecuteScript
currently returns true or false as JavaScript was refactoredJavaScript code was refactored to use
functions
because this is easier to copy them to browser and test and maintain in the future.JavaScript code is stored as static value which optimize speed of AutoIt execution in case of using this function multiple times.
Function should verify that that calling routine supplied multiple options to match.
Additional context
https://www.autoitscript.com/forum/topic/205553-webdriver-udf-help-support-iii/?do=findComment&comment=1505272
#368 (comment)
System under test
not related