Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to change the Year?
#4
Solved: 11 Years, 3 Months, 4 Weeks ago
These work fine:
Code:
intYear = Year(Now)            '=2011
intYear = Year(Now) - 3       '=2008
intYear = Year(Now) - 10      '=2001

This works"
Code:
'Browser("Preferences").Page("Preferences").WebList("Select_Tax_Year").Select "2001"

But these dont:
Code:
With Browser("Preferences").Page("Preferences")
.WebList("Select_Tax_Year").Select "Year(Now) - 3"             '"2008"
.WebList("Select_Tax_Year").Select "intYear"                     '"2001"

nor these:
Code:
.WebList("Select_Tax_Year").Select (Year(Now) - 3)             '"2008"
.WebList("Select_Tax_Year").Select intYear                         '"2001"

Can I use a variable to select a drop down's list value?
Reply


Messages In This Thread
How to change the Year? - by mv8167 - 09-17-2011, 01:22 AM
RE: How to change the Year? - by mv8167 - 09-19-2011, 07:46 PM
RE: How to change the Year? - by mv8167 - 09-19-2011, 10:36 PM
RE: How to change the Year? - by vIns - 09-20-2011, 04:51 AM
RE: How to change the Year? - by mv8167 - 09-20-2011, 06:45 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How do you Change Run mode mid script? Caleytown 6 7,234 03-25-2021, 08:27 AM
Last Post: RB26578
  [UFT] Change property of object (WpfButton) robertosalemi 2 2,628 11-22-2016, 12:43 PM
Last Post: Ankur
  Dynamic change of name for Webtables prakashreddy 1 2,386 10-25-2014, 09:53 PM
Last Post: supputuri
  How can I change my test folders, globally? atester 0 2,029 10-03-2014, 04:37 PM
Last Post: atester
  JavaDialog change every time i run my test Pkapoor 3 2,995 06-28-2013, 09:27 PM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 3 Guest(s)