Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not able to select weblist value
#1
Solved: 11 Years, 2 Months, 1 Week ago
Weblist has items - 1,2,3,4,5,6,7,8,9,10,11,12

current value set to 9

i want to select 8

belw code is not helping me to solve my issue -

Code:
sTimeVal = "9"
sTimeVal = (sTimeVal) - "1"
PRINT sTimeVal

Browser("CVS pharmacy").Page("CVS pharmacy - SelectLocation").WebList("PickupHours").Select sTimeVal

Please suggest me the possible solution

Got the solution..after using Cstr its working
Reply
#2
Solved: 11 Years, 2 Months, 1 Week ago
Code:
sTimeVal = 9
sTimeVal = (sTimeVal) - 1
PRINT sTimeVal

Browser("CVS pharmacy").Page("CVS pharmacy - SelectLocation").WebList("PickupHours").Select sTimeVal
Thanks,
SUpputuri
Reply
#3
Solved: 11 Years, 2 Months, 1 Week ago
You may want to know the difference notation of Integer vs String.
Why are you doing this if you want to select only 8?
Code:
sTimeVal = (sTimeVal) - 1
This should just work fine?
Code:
sTimeVal=8
Browser("CVS pharmacy").Page("CVS pharmacy - SelectLocation").WebList("PickupHours").Select sTimeVal
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  WEBLIST shayk1985 3 5,618 05-17-2018, 11:49 AM
Last Post: Ankur
  Weblist selection diya 11 21,375 06-16-2015, 08:27 PM
Last Post: rajpradeep32
  Comparing webtable data with weblist and webelements in other webpage arnav 1 5,815 04-18-2014, 10:01 PM
Last Post: Parke
  Unable to select value on weblist ShekharUlli 3 5,678 09-26-2013, 08:58 AM
Last Post: basanth27
  Exporting List of ltems from Weblist to Excel shayk1985 1 2,778 05-22-2013, 06:55 AM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)