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

.Clear() Equivalent? #223

Open
ASAJacob opened this issue May 31, 2022 · 1 comment
Open

.Clear() Equivalent? #223

ASAJacob opened this issue May 31, 2022 · 1 comment

Comments

@ASAJacob
Copy link

ASAJacob commented May 31, 2022

Hello. In python you can clear a text field by calling .clear() on the element. Is there an equivalent cmdlet in the module or different way to accomplish this? I tried to achieve by running Send-SeKeys -Element $search_box -Keys ([OpenQA.Selenium.Keys]::Clear) but it doesn't seem to work as expected.

@BogdanIstrate
Copy link

Hello,
As a workaround you can use:
$search_box.Clear()

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

No branches or pull requests

2 participants