Html Powershell web抓取IE下拉列表不更新值
我目前正在尝试在PowerShell中开发一个脚本,该脚本打开Internet Explorer,更改两个下拉值(更新表值),然后将表刮取为CSV文件 顺便说一下,站点有一个静态URL,更改下拉列表不会更改URL:( 我可以让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.
<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")