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

Expose elementList instead of returning the elementWrapper from the selectors #808

Closed
11 tasks done
luciferankon opened this issue Sep 12, 2019 · 1 comment
Closed
11 tasks done
Assignees

Comments

@luciferankon
Copy link
Contributor

luciferankon commented Sep 12, 2019

For more information refer here
Selectors need to be modified

  • button
  • image
  • link
  • listitem
  • fileField
  • textBox
  • dropDown
  • checkBox
  • radioButton
  • text
  • $
@luciferankon luciferankon self-assigned this Sep 12, 2019
@BugDiver BugDiver removed their assignment Sep 16, 2019
luciferankon added a commit that referenced this issue Sep 17, 2019
- get to take required arguments i.e. retryInterval, tag etc
- Fixed tests for image selector
- Used elements instead of get in button, image and link selector
luciferankon added a commit that referenced this issue Sep 19, 2019
- made get and exists async to restore backward compatibility
luciferankon added a commit that referenced this issue Sep 25, 2019
- passed eventEmitter to apis
- passed retryTimeout, retryInterval to exists, text, value also
luciferankon added a commit that referenced this issue Sep 26, 2019
- Throw error if there is no matching node
- Passed nodeId instead of element
- Returned nodeId from element
luciferankon added a commit that referenced this issue Oct 9, 2019
- Passed nodeId instead of elements
- Used elements instead of get
luciferankon added a commit that referenced this issue Oct 9, 2019
luciferankon added a commit that referenced this issue Oct 10, 2019
- Return fallback elementList if no matching nodeIds are found
luciferankon added a commit that referenced this issue Oct 11, 2019
- run lint
luciferankon added a commit that referenced this issue Oct 11, 2019
@nehashri nehashri assigned nehashri and unassigned luciferankon Nov 13, 2019
NivedhaSenthil pushed a commit that referenced this issue Nov 29, 2019
)

* Modified selector button to return elementList #808

* Modified selector image to return elementList #808

* Modified selector link to return elementList #808

- get to take required arguments i.e. retryInterval, tag etc
- Fixed tests for image selector
- Used elements instead of get in button, image and link selector

* Modified selector fileField to return elementList #808

* Modified selector textBox to return elementList #808

- made get and exists async to restore backward compatibility

* reduce the timeout to 1 sec for doesn't exist check #808

* Modified selector dropDown to return elementList #808

- passed eventEmitter to apis
- passed retryTimeout, retryInterval to exists, text, value also

* Modified selector checkBox to return elementList #808

- Throw error if there is no matching node
- Passed nodeId instead of element
- Returned nodeId from element

* Modified selector radioButton to return elementList #808

* Modified selector text to return elementList #808

* Modified selector $ to return elementList #808

* Modified selector listItem to return elementList #808

* Run all unit tests #808

- Passed nodeId instead of elements
- Used elements instead of get

* Refactored tests for get #808

* Fixing tests #808

- Return fallback elementList if no matching nodeIds are found

* Fixing FT's #808

- run lint

* Fix unit tests on linux #808

* Moved eventEmitter to helper.js and stopped passing it to getIfExists #808

* Logged the exception when no element found #808

* Extracted basic element wrapper generation in a method #808

* returned empty value for .text() if no element exists #808

* removing exists from list of elements in elementlist

* Added isChecked, check, uncheck to all the elements in elementList #808

* Added isSelected, select, deselect to all the elements in elementList for radiobutton #808

* Added value to all the elements of elementList in fileField #808

* Added value to all the elements of elementList in textBox #808

* implement text to throw error if element is not found

* refactioring. use .elements instead of getifexists

* adding select and value to elements in elementList for dropdown

* used elements instead of get for textMatch

* refactoring. moving around functions.

* refactoring. element.get() is now a sync fucntion

* refactoring. removing unused params, passing nodeId to evaluate

* adding todos. updating docs
@Debashis9012
Copy link
Contributor

This enhancement has been tested.
Tested version: ff140a8a5a76be5be2b7d1a82f04bdab27ac91d0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants