英文:
Right mouse click and selecting the appropriate item using Playwright
问题
Once the page loads, Is there a way to select the option from right click
Example: I am using locator and able to perform right click
await page.getByRole("document").click( { button: "right" });
Now I would like to click on "View Page Source". Is there an option to do this using Playwright
Basically, the use case is to automate. I expect a different item in the right click which will be useful in automating.
英文:
Once the page loads, Is there a way to select the option from right click
Example: I am using locator and able to perform right click
await page.getByRole("document").click( { button: "right" });
Now I would like to click on "View Page Source" . Is there an option to do this using Playwright
Basically, the use case is to automate. I expect a different item in the right click which will be useful in automating.
答案1
得分: 1
这个功能不受 Playwright 支持。看起来像是类似这个问题 https://github.com/microsoft/playwright-python/issues/676。
英文:
This functionality is not supported by Playwright. Seems like a similar issue like this https://github.com/microsoft/playwright-python/issues/676.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论