Forum Discussion

enriquebravo's avatar
3 years ago

Can KeywordTests Parameters be used as selector value?

Hi,   I need to click on a table cell. Currently, the selector is displayed as:  //div[.='John Smith']   If I want to click another cell in the table with a different name is it valid to replace...
  • npaisley's avatar
    3 years ago

    Hi enriquebravo!


    You can absolutely use Variables in the mapping! 


    For instance, you can create a Variable called 'tableIDVar' with 'John Smith' as the value. Then in the mapping for that object, you can replace the value with '%tableIDVar%, i.e. = '//div[.='%tableIDVar%']



    Here is the overview docs for Variables within TC;


    I hope this helps!