Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
280
How to Set Date from Calender into SwfTable Cell.
posted

Hello,

I am working on .Net application automation using UFT 11.53 and Infragistic TestAdvantage10.2 (Version: 10.2.20102.2023)

The Scenario is SwfTable Cell having an button, if we click on button calendar will expand and from calendar need to select date and same will be populating in the cell.

I have tried  by recording method and below is generated script, and while replaying, script running without error but Date is not setting into cell.

SwfWindow("Hsment").SwfTable("ugS").ActivateRow "0"

SwfWindow("Hsment ").SwfTable("ugS ").ActivateCell "0","Visit"

SwfWindow("Hsment ").SwfTable("ugS ").SetCellData "0","Visit","12/16/2014"

 

And, also tried below method , it doesn’t worked.

sBandNum = "0"
sRowNum = "0"
sColName = "Visit"
iActionEnterEditMode = 24
iActionExitEditMode = 44
SwfWindow("Hsment ").SwfTable("ugS ").").ActivateCell sRowNum, sColName
SwfWindow("Hsment ").SwfTable("ugS ").Object.PerformAction(iActionEnterEditMode)

SwfWindow("Hsment ").SwfTable("ugS ").SetCellData sRowNum,sColName,"12/16/2014"

Please let me know if any other method to set calendar date into cell.

 

Thanks,

Saroja

Parents Reply Children