Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Web Table image object
#1
Not Solved
hi,

Please help me anyone.

My web table contains more number of Cancel images i want to click my selected Cancel image.

i tried this code

Code:
browser("").page("").webtable("").childitem(row,col,"image",0).click
------this code is not working

Code:
browser("").page("").image("Cancel").click
---------this is working but my problem is it is clicking first Cancel button only, i would like to click 4th row Cancel image.

please see the attached screen shot in that when i am adding objects
that image (Cancel) is identifying index value is different for those Cancel images.

Regards,
Praveen Raaj.


Attached Files Image(s)
   
Reply
#2
Not Solved
Can you try the followings..

Code:
Browser("").Page("").Webtable("").SelectCell 1,"Cancel Leave"  '//replace 1 with the desired cell
Browser("").Page("").Webtable("").ClickCell 1,"Cancel Leave"  '//This will click on the image.

Regards,
Ankesh
Reply
#3
Not Solved

You need to mention Row & Column number.

For EX: -
Code:
browser("").page("").webtable("").childitem(4,9,"image",0).click
Reply
#4
Not Solved
hi,

please help me

Code:
Browser("").Page("").Webtable("").ClickCell 1,"Cancel Leave"
browser("").page("").webtable("").childitem(4,9,"image",0).click
----these two types also not working.

my problem is in a single column for each row i have a image , i want to click on selected image like once 3rd row next time 4th row like this.

regards,
Praveen Raaj.


hi,

please help me

Code:
Browser("").Page("").Webtable("").ClickCell 1,"Cancel Leave"
browser("").page("").webtable("").childitem(4,9,"image",0).click
----these two types also not working.

my problem is in a single column for each row i have a image , i want to click on selected image like once 3rd row next time 4th row like this.

regards,
Praveen Raaj.
Reply
#5
Not Solved
Try this and let us know the result
Note :- Change the col value as per ur requirement
Code:
col = 9
rCnt = browser("").page("").webtable("").GetROProperty("rows")
For i = 1 to rCnt
Set objImg = browser("").page("").webtable("").ChildItem(i,col,"Image",0)
objImg.Highlight
objImg.Click
Next
Reply
#6
Not Solved
hi,

thanks for your suggestion.Still my problem is not solved

Please help me

1.
Code:
browser("").page("").webtable("").childitem(row,col,"image",0).click-----

2.
Code:
browser("").page("").image("Cancel").click------

and

3.
Code:
col = 9
rCnt = browser("").page("").webtable("").GetROProperty("rows")
For i = 1 to rCnt
Set objImg = browser("").page("").webtable("").ChildItem(i,col,"Image",0)
objImg.Highlight
objImg.Click
Next--------------

above 3 methods are not working my application is Ms.Net 2010 based developed application above code is working for 2008 based application.


Regards,
Praveen Raaj.
Reply
#7
Not Solved
hi,

Please Help me anyone.

regards,
Praveen raaj.
Reply
#8
Not Solved
does the object "Cancel" highlighting?
Thanks,
SUpputuri
Reply
#9
Not Solved
hi,

thank you please help me.

object "Cancel" is not highlighting

throwing run error as "Object required"
objlmg.higlight

regards,
Praveen raaj.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Web Object Unique ID Number zunebuggy 0 1,560 07-10-2017, 05:37 PM
Last Post: zunebuggy
  Updating the web table Ananth1982 0 1,888 03-04-2015, 02:31 AM
Last Post: Ananth1982
  how to validate all lebel object in a table niketa 1 2,825 10-30-2014, 01:56 PM
Last Post: Ankesh
  Retrieving data from web table nsuresh316 1 3,111 03-03-2014, 08:29 AM
Last Post: basanth27
  User defined Objects(Can't map standard grid object in to table object ) madhavanr 0 2,597 01-14-2014, 03:46 PM
Last Post: madhavanr

Forum Jump:


Users browsing this thread: 1 Guest(s)