找不到选择器的元素:#react-select-17-option-0(下拉菜单)
我正在尝试从页面中选择一个下拉菜单,但无法使用Puppetteer选择其中一个选项。我已经检查了元素选择器。页面只有1帧,这是html源代码在这里输入图像说明
等待page.click('输入[id =“ react-select-7-input”]')我在屏幕截图中获取下拉次数,而是在html中而不是更改输入的值,它添加了一个DIV,其中“常规护照”是选项2
I am trying to select a dropdown menu from a page but unable to select one of the options using puppetteer. I have checked the element selector. the page is only 1 frame this is the html source code enter image description here
When I click on await page.click('input[id="react-select-7-input"]') I get the dropdown in a screenshot but in the html instead of the value of the input being changed it adds a div with "Regular Passport" which is option 2
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,今天奏效了!我不知道发生了什么,也许该页面有一个错误?
这件代码做到了,我昨天尝试了!
Well today it worked! I have no idea what was happening maybe the page had a bug?
this piece of code did it which I tried yesterday!