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

Add Clear to locator #1149

Merged
merged 4 commits into from
Jan 10, 2024
Merged

Add Clear to locator #1149

merged 4 commits into from
Jan 10, 2024

Conversation

ankur22
Copy link
Collaborator

@ankur22 ankur22 commented Jan 4, 2024

What?

This adds a new method clear to the locator class. This works with the existing Fill method which is in the locator class. Resources that contributed to the implementation can be found by following the links below:

Why?

When typing or filling textboxes or input fields, it's useful to clear existing fields in case they already have values.

Checklist

  • I have performed a self-review of my code
  • I have added tests for my changes
  • I have commented on my code, particularly in hard-to-understand areas

Related PR(s)/Issue(s)

Updates: #1114

Copy link
Member

@inancgumus inancgumus left a comment

Choose a reason for hiding this comment

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

Nice work 👍

tests/locator_test.go Show resolved Hide resolved
This is a new method on the locator type. It will clear the text from
an input element. It uses the existing fill API to override existing
text with an empty string.
This method will be used in the mapping layer to instantiate a
FrameFillOptions.
@ankur22 ankur22 merged commit b7543e6 into main Jan 10, 2024
17 checks passed
@ankur22 ankur22 deleted the add/locator-clear branch January 10, 2024 09:31
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.

3 participants