Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以从 Playwright 中的页面获取当前 url?我似乎在文档中找不到任何信息。
像这样的东西:
let url = await page.url
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