|-转 [Bug]: TypeError: page.$x is not a function
refactor!: remove $x and waitForXpath
page.$x is removed, use page.$$ function instead
Removes the deprecated $x (replace with $$) and waitForXpath (replace with waitForSelector).
If the xpath starts with // you will need to prefix it with dot - // becomes xpath/.//.
$x Before:
page.$x('//p[normalize-space(.)="hello world"]');
$$ After (note the dot before the xpath):
page.$$('xpath/.//p[normalize-space(.)="hello world"]')...
浏览更多内容请先登录。
立即注册
更新于:2024-10-05 21:41:15
相关内容
推荐内容