jvppeteer icon indicating copy to clipboard operation
jvppeteer copied to clipboard

page.select()方法选取select标签下指定的option抛出异常

Open ObserverYu opened this issue 3 years ago • 3 comments

初步观察源码,发现可能是JSHandle中的evaluate方法没有正确的处理参数

ObserverYu avatar Oct 13 '20 06:10 ObserverYu

給個有下拉選項的页面看看

------------------ 原始邮件 ------------------ 发件人: "fanyong920/jvppeteer" <[email protected]>; 发送时间: 2020年10月13日(星期二) 下午2:45 收件人: "fanyong920/jvppeteer"<[email protected]>; 抄送: "Subscribed"<[email protected]>; 主题: [fanyong920/jvppeteer] page.select()方法选取select标签下指定的option抛出异常 (#25)

初步观察源码,发现可能是JSHandle中的evaluate方法没有正确的处理参数

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

fanyong920 avatar Oct 13 '20 06:10 fanyong920

給個有下拉選項的页面看看 ------------------ 原始邮件 ------------------ 发件人: "fanyong920/jvppeteer" <[email protected]>; 发送时间: 2020年10月13日(星期二) 下午2:45 收件人: "fanyong920/jvppeteer"<[email protected]>; 抄送: "Subscribed"<[email protected]>; 主题: [fanyong920/jvppeteer] page.select()方法选取select标签下指定的option抛出异常 (#25) 初步观察源码,发现可能是JSHandle中的evaluate方法没有正确的处理参数 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

已测试下拉选项, 但是这个方法有没有影响其他地方没有手动测试, 只是看了一下, 好像其他地方没有多参数的情况

ObserverYu avatar Oct 13 '20 06:10 ObserverYu

PageSelectExample我修改了一下,使用了page.setContent()

fanyong920 avatar Oct 13 '20 07:10 fanyong920