是否可以在PLaywright中从页面对象中获取当前的url?我好像在文档里找不到任何信息。
如下所示:
let url = await page.url发布于 2020-10-12 05:27:31
const {browser}=this.helpers.Playwright;
await browser.pages(); //list pages in the browser
//get current page
const {page}=this.helpers.Playwright;
const url=await page.url();//get the url of the current page
https://stackoverflow.com/questions/64308751
复制相似问题