New To UFT? Join the best UFT Training Online!
with Browser("..").Page("...r") x1=.WebElement("innerhtml:=TextBox").GetROProperty("abs_x")+10 h=.WebElement("innerhtml:=Text Box").GetROProperty("height") y1=.WebElement("innerhtml:=Text Box").GetROProperty("abs_y")+h-10 end with Set oDeviceReplay=CreateObject( "Mercury.DeviceReplay" ) oDeviceReplay.DragAndDrop x1,y1,x2,y2, LEFT_MOUSE_BUTTON where (x1,y1)=drag point (x1,y2)=drop point
set ExcelObj = CreateObject("Excel.Application") set oBook = ExcelObj.Workbooks.Open("C:\Newfolder.xls") ExcelObj.Application.Visible = True Excelobj.ActiveWorkbook.saveas "D:\newfolder.xls" Excelobj.quit