Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/excel/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在Selenium ChromeDriver Excel VBA下拉列表中选择选项时出现问题_Excel_Vba_Selenium Chromedriver - Fatal编程技术网

在Selenium ChromeDriver Excel VBA下拉列表中选择选项时出现问题

在Selenium ChromeDriver Excel VBA下拉列表中选择选项时出现问题,excel,vba,selenium-chromedriver,Excel,Vba,Selenium Chromedriver,伙计们,怎么了 我是Selenium for VBA的新手,在打印之后,我很难在下拉列表中选择一个选项 我得到了一个名为“Tipo”的字段(图1)。此字段是一个下拉列表,允许我选择一些选项(图2)。我想要选择的选项(征求意见)没有出现,我只能稍微向下滚动下拉菜单,然后点击(图3) 我如何选择“征求意见”选项。SendKeys方法不起作用,我得到了一个错误(图4) 请与options共享下拉列表元素的html。页面的html: 'Escolher tipo bot.FindElementByXP

伙计们,怎么了

我是Selenium for VBA的新手,在打印之后,我很难在下拉列表中选择一个选项

我得到了一个名为“Tipo”的字段(图1)。此字段是一个下拉列表,允许我选择一些选项(图2)。我想要选择的选项(征求意见)没有出现,我只能稍微向下滚动下拉菜单,然后点击(图3)

我如何选择“征求意见”选项。SendKeys方法不起作用,我得到了一个错误(图4)


请与options共享下拉列表元素的html。页面的html:
'Escolher tipo

bot.FindElementByXPath("//*[@id='react-select-Tipo--value']").Click

bot.FindElementByXPath("//*[@id='react-select-Tipo--value']").SendKeys ("Solicitação")

Application.Wait (Now + TimeValue("00:00:05"))

End Sub