Forum Discussion

mfoster711's avatar
mfoster711
Regular Contributor
12 years ago

Saving field Value comparing later

I need to perform the following:


  • save a value from a WebPage


  • perform some actions within the website


  • come back to the same WebPage as step 1


  • verify the saved value matches the value on the screen


The value that I save will vary with each test run. How do I do this in a Keyword Test? I am drawing a blank. 

2 Replies

  • Marsha_R's avatar
    Marsha_R
    Icon for Champion Level 3 rankChampion Level 3
    I would create a local variable in the test, then use Set Variable Value to save the variable in the first pass.  In the second pass, use Compare Properties or an If statement to compare the variable value to the new value on the web page.
  • mfoster711's avatar
    mfoster711
    Regular Contributor
    Some times you need to stop what you are doing and go to lunch. This was one of those days. 



    I was trying to do exactly the steps you described but I was overlooking how to save an onscreen object property value to a variable. I found that feature now and it is working.