adamdriscoll/selenium-powershell

.Clear() Equivalent?

ASAJacob opened this issue · 1 comments

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.

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