Not able to select the checkbox in a webapplication
I have a webapplication where I need to select a particular webcheckbox which is not happening
Scenario as below
1) Login to the site , the webapplication , say ebay.com
2) click any category , say dresses
3) On category page click on say size filter which shows th different size available . This is basically a webelement
4) when user clicks say size filter a fly out appears where we have different sizes as webcheckbox where I want to click first checkbox . I have below code which is also not working
Browser("SPC").Page("SPC").WebCheckbox("type:=chec kbox","index:=0","html tag:=INPUT").Set "on"
Appreciate if anyone can help out .
Make sure there is any typo coz i could see "type:=chec kbox" please chk it is correctly typed("type:=checkbox").
If you need to click always the first checkbox then my suggestion is add that particular checkbox to OR with mentioned DP in your code and do highlight to make sure its referencing the correct object.
If you want to use DP for this then refer below link or search this forum you could find 'n' number of solution....
Thanks a lot ! Let me try the same !
You should rather use, Browser("SPC").Page("SPC").WebCheckbox("micclass:= WebCheckBox").Set "on", if you want to select the only checkbox present, if you just want the first one, Browser("SPC").Page("SPC").WebCheckbox("index:=0") .Set "on"