hi ,
I am currently automating a web task using windows script.
For the below source script , i need wsh script
<td title="Export Report" class="ui-pg-button ui-corner-all" style="cursor: pointer;" jQuery1404898744838="556">
<div class="ui-pg-div">
<span class="ui-icon ui-icon-newwin"/>
Text - Export
From the above script,
I need to click the "export"
Please anyone guide me to form a WSH script for clicking the "Export"
So far my code is
Set IE = CreateObject("InternetExplorer.Application")
Set WshShell = Wscript.CreateObject("Wscript.Shell")
IE.navigate "url"
IE.Visible = True
Wscript.sleep 10000
IE.Document.getElementbyID("ctl00_ContentPlaceHolder1_ddl_datefilter4").focus()
WScript.sleep 10000
IE.Document.getElementbyID("ctl00_ContentPlaceHolder1_ddl_datefilter").SelectedIndex=4
WScript.Sleep 10000
IE.Document.getElementbyID("ctl00_ContentPlaceHolder1_txt_fromdate").value = "30 Jun 2014"
WScript.Sleep 10000
IE.Document.getElementbyID("ctl00_ContentPlaceHolder1_txt_todate").value = "04 Jul 2014"
WScript.Sleep 10000
IE.Document.getElementbyID("a_genslasummary").click()
WScript.sleep 10000
Thanks in Advance
Naveen