hp uft - How to make web pages and dialog boxes invisible in UFT while navigating to a url for downloading a file? -
i trying download report using uft navigating multiple web pages interacting download dialog box save file on particular location. want happen in background want make web pages , dialog box invisible while running uft. there browser , dialog property can make make them invisible in terms of gui download report.
this code using. please in advance.
browser("welcome. microstrategy").page("welcome. microstrategy").link("link").click browser("welcome. microstrategy").page("welcome. microstrategy").link("shared reportsrun reports").click browser("welcome. microstrategy").page("welcome. microstrategy").link("link_2").click browser("welcome. microstrategy").page("welcome. microstrategy").link("link_3").click browser("welcome. microstrategy").page("welcome. microstrategy").webelement("tbexport").click while dialog("internet explorer").exist=false wait(1) wend if dialog("internet explorer").exist=true dialog("internet explorer").winbutton("save &as").click end if strsafedate = datepart("yyyy",date) & right("0" & datepart("m",date), 2) & right("0" & datepart("d",date), 2) strsafetime = right("0" & hour(now), 2) & right("0" & minute(now), 2) & right("0" & second(now), 2) 'set strdatetime equal string representation of current date , time, use part of valid windows filename strdatetime ="h:\mstr reports\ipp_not_paid_"& "_" & strsafedate & "-" & strsafetime dialog("save as").winedit("file name:").type strdatetime dialog("save as_2").winbutton("&save").click wait(5) browser("welcome. microstrategy").closealltabs
Comments
Post a Comment