Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get text of weblement
#11
Solved: 11 Years, 4 Months ago
Hi Manish,

I have tried it with below code.
Code:
For i = 1 To DataTable.GetRowCount
   DataTable.SetCurrentRow(i)
   MsgBox DataTable.Value("DataTable Column Name", dtGlobalSheet)
Next


But It displayed blank values for some iteration.
For Ex. If Run for All is set
For first iteration it displayed as below
1. Expected velue
2. Blank value
3. Blank value. ( I have used three parameters)

For second iteration it displayed
1. Expected value
2. Expected value
3. Blank value.

For third iteration it displayed
1. Expected value
2. Expected value
3. Expected value

If I set Run for one Iteration then it displayed
1.Expected Value
2. Blank value
3. Blank value

Can you please tell where we r wrong in the For Loop ?

Thanks

Sudhir
Reply
#12
Solved: 11 Years, 4 Months ago
Please provide the screenshot of your datatable.
For me the above loop is working in both the settings.
Reply
#13
Solved: 11 Years, 4 Months ago
Hi Manish,

Please find the attached screen shot of the Datatable.


Attached Files Image(s)
   
Reply
#14
Solved: 11 Years, 4 Months ago
Hi Sudhir,

Output CheckPoint will always put the values in 1st row of datatable.
Change your script settings to Run one iteration and all the code except login should be placed in For loop. First statement in the loop should be DataTable.SetCurrentRow(i).

Try this out.
Reply
#15
Solved: 11 Years, 4 Months ago
Yes Manish,

Its working as per modified For...Loop. One minor change I made i have added
Browse(" ").Back for second iteration Smile

Thanks again.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Need to Validate Text filed is blank after clicking on the Text box balak89 3 4,905 09-13-2015, 12:06 AM
Last Post: ADITI1992
  I am trying to extract text from a webelement but it is generating blank text scenari excellentpawan 2 4,674 08-13-2013, 08:37 PM
Last Post: excellentpawan
  how to find a particular text in a text string pjavvaru 3 17,086 06-04-2010, 08:49 PM
Last Post: jsknight1969
  Retrieve text from Text Checkpoint Amit Singh Chauhan 1 2,506 08-20-2009, 07:15 PM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 2 Guest(s)