Forum Discussion
- karkadilValued ContributorThe property name you have to work with depends on the tested application and control type you are working with.
For instance, in your case you work with web application and most probably have to use innerText property. - zineoOccasional ContributorYa, I have tried before choose the inner text. But it also doesn't works.
- zineoOccasional ContributorThe webpage I wish to test was create by using J2EE which include jsp and others coding.
I have try to get the value by choosing the innerText, but its doesn't work, seems can't get no value.
Hope there is some way to solve it? :) - YMinaev
Staff
Hi,
Can you clarify your request? What are you trying to do and what behavior do you observe?
Currently, it is unclear what the problem is, so can you describe it in detail? - zineoOccasional ContributorOk, I will talk in details with figure.
Please check the attach file for the Figure that I mention in my explanation.
I wan to get the highlighted value (Figure 1) which is a column data of result data that query from database.
After, auto set the value to the highlighted text field (Figure 2).
I got follow the step that provide in "Using Variables in Keyword-Driven Tests" video, but its seems doesn't work.
For Figure 3 was the screenshot of the process flow in Test Complete. - zineoOccasional ContributorThe problem that I mention at previous post I have been solved.
But now I have another question want to ask that how to repeat the task in looping according to the lines of data have query out?
Example, if there is 5 lines of data, I will wan to perform some checking on every line of data. So, in this case I will need to perform the checking 5 times.
But, how to get the total data lines value by using Test Complete and complete the task I mention above?
I have attach the print screen of the webpage with highlighted data lines. :) - YMinaev
Staff
Hi,
You need to iterate through rows of your table and perform the needed actions in a loop for each row. There's an example in the "Parsing HTML Tables" help topic. - zineoOccasional ContributorOk, I will look on it. :)
Another thing I wish to ask that the variable that declare in Test Complete, the value can be add/subtract during the testing process?
Example,
Variable x=0
x=x+1 - tristaanogreEsteemed ContributorYou can do so by use the SetVariable operation to set it equal to a "code expression" where you add one to the variable.
- reddycnNew Contributorcan you post your answer how you resolved it.
I am having the same issue I need to capture the data in one of the text field on the screen into a variable and use that data in another screen text field as a input.