pyppeteer 如何執行js函數定位路徑變化的標籤

遇到一場景,每次請求頁面標籤路徑會變化,致使定位不到。html selenium 能夠根據標籤的text值進行定位,driver.find_element_by_xpath('//button/span[contains(text(), "指定文本內容")]').click(),async pyppeteer 執行xpath的操做沒有測試。測試 async def click_credential
相關文章
相關標籤/搜索