Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Data not saving to data table using GetRoProperty
#1
Not Solved
Data retrived using Getropropert during run time is not saving to data table
plz help here is the script
Code:
datatable.SetCurrentRow(i+1)
datatable("listofalllinks",global)=Browser( oBrowser).Page( oPage).GetTOProperty("href")
Reply
#2
Not Solved
Hi,

You are using wrong syntax. Use the below
Code:
datatable.value("listofalllinks",global)=Browser(oBrowser).Page( oPage).GetTOProperty("href")

Regards,
Parminder
Reply
#3
Not Solved
hi Parminder thanks for the reply still data not saved in data table.
Reply
#4
Not Solved
Hi,

Could you please save this
Code:
Browser(oBrowser).Page( oPage).GetTOProperty("href")
in a variable and debug to see if "href" property is bringing any value or not.

Regards,
Parminder
Reply
#5
Not Solved
hi
try with the following one
Code:
listofalllinks=Browser(oBrowser).Page( oPage).GetTOProperty("href")
msgbox sVal (check  the value  whether that is the expected one)
datatable.value(listofalllinks,global)
Reply
#6
Not Solved
Hi Narsimha,

First thing is the code you developed is correct but as mentioned parminderdhiman84 confirm that getroproperty is pulling some value before writing to global sheet.

And the other thing that we have to remember is what ever the values that you entered/written to global sheet won't display in the global sheet once the execution is completed, we can find the data only in the "Run-Time Data Table" in the results window. Please let me know still you can get what you desired.

If you are using the code provied by Sathiya, make sure that you have used the correct variable while writing to msgbox (listofalllinks but not sVal )
Thanks,
SUpputuri
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Multiple rows of test data Bhuvana 0 1,337 01-03-2020, 09:30 PM
Last Post: Bhuvana
  Set data parameters Mik2s 1 1,480 03-07-2019, 10:18 PM
Last Post: supputuri
  Excelsheet data entry Anshu 0 1,618 07-11-2017, 07:41 PM
Last Post: Anshu
  Want to read the data from excel and set read value in the JavaTable rajeevk7 0 2,309 07-10-2017, 04:20 PM
Last Post: rajeevk7
  dtLocalSheet empty even though excel file contains data cantorre 2 2,428 05-10-2017, 12:47 PM
Last Post: vidhi

Forum Jump:


Users browsing this thread: 2 Guest(s)