Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
VAlue from datasheet is not being picket up
#5
Solved: 11 Years, 3 Months, 4 Weeks ago
I can only see that scenario happening if your script is throwing an error. VbScript stops execution on error unless otherwise specified. You do have to be careful. depending on the errored statment, the next line might be the true statement of the if..condition and not be the results you want.

Code:
on error resume next 'go to next statment
Dim FromDateDisabled
FromDateDisabled = 1 'default to satisfy condition test if error occurs
FromDateDisabled = Browser("x").Page("y").WebEdit("FromDate").GetROProperty("Disabled")
If FromDateDisabled = 0 Then  'disabled is reverse logic too!!!!
  Browser("x").Page("y").WebEdit("FromDate").Set DataTable("FromDate", dtGlobalSheet)
Else
  Reporter.ReportEvent micPass,"From Date","From Date Disabled"
end if

Hope this helps.
Reply


Messages In This Thread
RE: VAlue from datasheet is not being picket up - by jsknight1969 - 02-17-2011, 11:12 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  export UFT datasheet to excel and then append Mozza 0 1,901 09-04-2018, 08:58 AM
Last Post: Mozza
  Change the datasheet jsknight1969 4 3,787 10-19-2009, 07:00 AM
Last Post: mhicke
  Set the column header in the excelsheet before importing it to local datasheet nageshpv 2 3,476 08-04-2008, 04:05 PM
Last Post: nageshpv

Forum Jump:


Users browsing this thread: 1 Guest(s)