Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/75.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
Html Powershell web抓取IE下拉列表不更新值_Html_Powershell_Internet Explorer_Scripting_Screen Scraping - Fatal编程技术网

Html Powershell web抓取IE下拉列表不更新值

Html Powershell web抓取IE下拉列表不更新值,html,powershell,internet-explorer,scripting,screen-scraping,Html,Powershell,Internet Explorer,Scripting,Screen Scraping,我目前正在尝试在PowerShell中开发一个脚本,该脚本打开Internet Explorer,更改两个下拉值(更新表值),然后将表刮取为CSV文件 顺便说一下,站点有一个静态URL,更改下拉列表不会更改URL:( 我可以让IE打开并更改两个下拉列表值,但在此之后表不会更新其值。。。 我认为这与站点代码有关,其中显示了此下拉列表的选项: <select id="pricing-display-by-dropdown" onchange="$('html').trigger('rate.

我目前正在尝试在PowerShell中开发一个脚本,该脚本打开Internet Explorer,更改两个下拉值(更新表值),然后将表刮取为CSV文件

顺便说一下,站点有一个静态URL,更改下拉列表不会更改URL:(

我可以让IE打开并更改两个下拉列表值,但在此之后表不会更新其值。。。 我认为这与站点代码有关,其中显示了此下拉列表的选项:

<select id="pricing-display-by-dropdown" 
onchange="$('html').trigger('rate.changed', this.value)">
 <option value="hour">Hour</option>
 <option value="month">Month</option>
</select>
任何帮助都将不胜感激,我是PowerShell和stackoverflow的新手,请原谅任何愚蠢的事情

$ie.Document.IHTMLDocument3_getElementByID("pricing-display-by-dropdown").fireEvent("onchange")
$ie.Document.IHTMLDocument3_getElementByID("pricing-display-by-dropdown").fireEvent("onchange")