Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to enter data in web table
#4
Solved: 10 Years, 10 Months ago
Hi All,
I am also facing a serious problem in one of my web application that i can't enter data in any one my cell in the table.
Attaching the Screen shot, Object spy.

I used this code:

Code:
rowcnt = Browser("name:=Automatic Building Plan Approval System").Page("title:=Automatic Building Plan Approval System").Frame("html id:=IframeExtract", "html tag:=IFRAME", "title:=PlotExtract").WebTable("html id:=fpExtracts_viewport", "html tag:=TABLE", "name:=fpExtracts:0,5").RowCount

colcnt = Browser("name:=Automatic Building Plan Approval System").Page("title:=Automatic Building Plan Approval System").Frame("html id:=IframeExtract", "html tag:=IFRAME", "title:=PlotExtract").WebTable("html id:=fpExtracts_viewport", "html tag:=TABLE", "name:=fpExtracts:0,5").ColumnCount

For r = 1 to rowcnt

    For c = 1 to colcnt

               Set Tempeditbox = Browser("name:=Automatic Building Plan Approval System").Page("title:=Automatic Building Plan Approval System").Frame("html id:=IframeExtract", "html tag:=IFRAME", "title:=PlotExtract").WebTable("html id:=fpExtracts_viewport", "html tag:=TABLE", "name:=fpExtracts:0,5").ChildItem(r,c,"WebElement",0)
        Tempeditbox.Click
        Tempeditbox.WebEdit("index:=0").Set "1"
        
        Next

Next

I even tried this code also at least to enter data in one cell

Code:
Set Tempeditbox = Browser("name:=Automatic Building Plan Approval System").Page("title:=Automatic Building Plan Approval System").Frame("html id:=IframeExtract", "html tag:=IFRAME", "title:=PlotExtract").WebTable("html id:=fpExtracts_viewport", "html tag:=TABLE", "name:=fpExtracts:0,5").Object.Rows(1).Cols(2)

Tempeditbox.Click
Tempeditbox.Set "1"


Attached Files Image(s)
   
Reply


Messages In This Thread
RE: Unable to enter data in web table - by nistalaramesh - 06-08-2012, 11:55 AM
RE: Unable to enter data in web table - by ssvali - 06-25-2012, 11:12 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Help with Select checkbox from data table value jayraocourts 0 1,084 11-01-2019, 10:25 PM
Last Post: jayraocourts
  Can QTP handle slick grid table in a web page qtplearner88 2 4,313 10-01-2019, 10:44 AM
Last Post: shilpi952
  unable to rowcount in web table manoj84monu 1 2,819 06-13-2016, 04:46 PM
Last Post: Anu1234
  Fetching values from a web table qapandit 7 8,670 05-30-2014, 02:32 PM
Last Post: nistalaramesh
  Facing issue with Java Table to press Enter Key from Keyboard Nasir Ahmed 0 4,399 05-23-2014, 08:05 PM
Last Post: Nasir Ahmed

Forum Jump:


Users browsing this thread: 1 Guest(s)