mechanical-orchard / playwright-elixir

An Elixir library for Playwright web automation
MIT License
119 stars 23 forks source link

Event Handle Fill #48

Closed iautom8things closed 1 year ago

iautom8things commented 1 year ago

Hi 👋 ! Thank you for this.

I'm just getting my feet wet with Playwright and your library, so maybe I'm doing something wrong. I noticed that Playwright has an ability to fill an eventhandle, but I do not see that this is exposed by this library.

If there's another way to do what I need to do, please let me know. I'm trying to work within an iframe. I can get the iframe and get the eventhandle from a query and then focus it. But I need to then fill it.

iautom8things commented 1 year ago

I'm sorry ... As soon as I submitted this I thought to try something different and I got it!

For anyone else coming here I was a bonehead and was trying to do something with justPlaywright.Frame.query_selector when I should have just been using Playwright.Frame.fill. So i was trying to do something with the ElementHandle returned by the query_selector when I should have just attempted to fill it. :derp: