puppeteer-sharp icon indicating copy to clipboard operation
puppeteer-sharp copied to clipboard

support for aria queries

Open OnurGumus opened this issue 3 years ago • 1 comments

I saw puppeteer supports aria based queries since some time https://developer.chrome.com/blog/puppetaria/

const button = await page.$('aria/Submit[role="button"]');
await button.click();

When I try to do same with .net

it fails as below System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.AggregateException: One or more errors occurred. (Query set to use "aria", but no query handler of that name was found) ---> PuppeteerSharp.PuppeteerException: Query set to use "aria", but no query handler of that name was found at PuppeteerSharp.CustomQueriesManager.GetQueryHandlerAndSelector(String selector) in C:\projects\puppeteer-sharp\lib\PuppeteerSharp\CustomQueriesManager.cs:line 103 wheras my code is as below page.ClickAsync("aria/Submit[role='button']") Is this a supported scenario?

OnurGumus avatar Sep 07 '22 06:09 OnurGumus

I’m working on that :) It’s not ready yet.

kblok avatar Sep 07 '22 06:09 kblok