SpecFlowOSS / SpecFlow.Actions

BSD 3-Clause "New" or "Revised" License
57 stars 53 forks source link

Keyboard actions in Specflow.actions.playwright #112

Closed ibrahimuye closed 1 year ago

ibrahimuye commented 1 year ago

I use the below standard playwright way to hit the enter button after filling the text box, but I could not a way to use Keyboard in Specflow.actions.playwright

//this works await _addressInput.FillAsync("21 Pacific St, Pittsfield, MA"); await _page.Keyboard.PressAsync("Enter");

I need to find how to use Keyboard in Specflow.actions.playwright

SabotageAndi commented 1 year ago

There is no difference. Get your page object and call the APIs. You don't have to use the Interactions class.

ibrahimuye commented 1 year ago

thank you It worked like that await _page.Result.Keyboard.DownAsync("ArrowDown");