ContributionsMost RecentMost LikesSolutionsGetting Error while using contentDocument.Script.$("selector") Hi All, I am trying to find the element using the pageObject.contentDocument.Script.$("li a[href='xyz']")[0] and getting error "Object doesn't support this property or method" can anybody help me with this? Re: How to find the date differences in terms of days? Hi tristaanogre, I tried this. var currentdate = aqDateTime.Now(); var newDate = aqDateTime.AddDays(currentdate,3); var res = aqDateTime.TimeInterval(currentdate, newDate); if I log this, I will get 1/2/1900 20:27:57 Log.Message("The interval as DateTime: " + aqConvert.DateTimeToStr(res)); What I want is the days difference which is 3 days (from Dec 30 1899 to Jan 2 1900) How to get that 3? Is there wait method for download to complete? I want to pause the test complete execution until the file downloading completes. How can I do that? SolvedHow to find the date differences in terms of days? I there way to find the date differences in terms of day? ex. Date1 - Date2 = x days Solved