I have a xpath to click on a object which is having a specfic text (for eg: //a[text()="Kumar Com1"] )
I made "Kumar Com1" is coming from a parameter file in earlier step. (for eg: TC.getParam("AccontName") )
Now I want to replace my xpath with parameter name. like //a[text()=TC.getParam("AccontName") ]
here is the issue. it is not recognizing the object. some thing I am missing to give in xpath properly
I tried with the options mentioned in video but not working.
Here is my best trail:
evalXPath("//a[text()=\"DexHub: Consultation Prep - \"+ArgsContext.TC.getParam(\"AccountName\")]");
again, I am missing something here. pls advise.