Storing value of object in a variable

i would like to get the id value from the id object, this value will then be stored in a variable so i can re-use the value for the next stage in my test case.

the id will change every time the test case is run so this variable has to stored whilst the test case in running

i would like to get the id value from the id object, this value will then be stored in a variable so i can re-use the value for the next stage in my test case.

the id will change every time the test case is run so this variable has to stored whilst the test case in running

Hi there,

It’s easy. I suggest you use ’ Get Attribute’ and pass in ‘id’ attribute to get ID of that web element. Please refer to this keyword page:
https://docs.katalon.com/display/KD/[WebUI]+Get+Attribute

Your keyword should look like this:
attribute = WebUI.getAttribute(findTestObject(‘Page_CuraHomepage/btn_MakeAppointment’), ‘id’)

Thanks

____________________
Thank you for choosing Katalon Studio as your automation solution.
Your feedback is needed to make Katalon Studio a better tool, take the survey at: https://goo.gl/S25NVO