Forum Discussion

enriquebravo's avatar
enriquebravo
Contributor
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 the value in the selector with a parameter?

 

//div[.=KeywordTests.MyTest.Parameters.Name]

 

I tried it but it didn't work. Do I have to create a selector for each cell that might be under test?

 

Regards