Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Invalid call argument using DateAdd
#3
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi Jow,
Please attach the snap shot of the screen you are working on.
According to me .....as you are using Weblist("toMonth") and as the name suggest it must take only the month value not the complete date.
Similarly, Weblist("toDay") will take only the day value and not the entire date.
For this.... store the day and month part in two different variables and then use them.

For eg
Code:
GetMonth = DatePart("m", departdate)

Browser("Welcome: Mercury Tours").Page("Find a Flight: Mercury").WebList("toMonth").Select GetMonth
Reply


Messages In This Thread
Invalid call argument using DateAdd - by jow - 07-16-2012, 07:32 AM
RE: Invalid call argument using DateAdd - by K Gaurav Varshney - 07-16-2012, 12:36 PM
RE: Invalid call argument using DateAdd - by jow - 07-17-2012, 02:05 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Click after CheckProperty to a WebElement passed via Function argument fails naruoga 0 1,160 02-28-2019, 11:46 AM
Last Post: naruoga
  Invalid file error importing xls file Makhado 0 1,421 10-04-2018, 04:33 PM
Last Post: Makhado
  The DataTable.ExportSheet operation failed. Invalid file. Niraj 2 6,288 05-05-2015, 11:40 PM
Last Post: babu123
  Invalid File error importing a spreadsheet but only on a VM msacks 1 2,752 10-19-2014, 09:04 PM
Last Post: supputuri
  How to pass all rows from data sheet in a function argument richa07 1 3,070 10-15-2012, 03:06 PM
Last Post: srinath_QTP

Forum Jump:


Users browsing this thread: 1 Guest(s)