单击具有跨度类的按钮

时间:2019-10-04 01:54:00

标签: html powershell

我正在尝试单击此链接(在其侧面有一个带有下载按钮的图标)“保存/打印此帐单(pdf)

感谢您的帮助,因为这是最后的步骤,在此先感谢您。

我尝试过:

($ ie.Document.IHTMLDocument3_getElementByID('save_desktop')|选择-first 1).click()

($ ie.document.getElementById(“ save_desktop”)|选择-first 1).click()

从DOM资源管理器中:

> <span class="tip ng-binding" id="save_desktop" style="color: black
> !important;">Save / Print this bill (PDF)</span>
> 
> <i class="cus-icon-download"></i>   (This is the button beside the
> link as well which would give the drop down options)

PS中的错误:

  
    

($ ie.document.getElementById(“ save_desktop”)|选择-first 1).click()     来自HRESULT的异常:0x800A01B6     在第2行:char:1     +($ ie.document.getElementById(“ save_desktop”)|选择-first 1)。单击...     + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~         + CategoryInfo:OperationStopped:(:) [],NotSupportedException         + FullyQualifiedErrorId:System.NotSupportedException

  

0 个答案:

没有答案