This discussion is archived
1 Reply Latest reply: Sep 18, 2013 5:32 AM by Deepu M RSS

In Openscript I am not able to use a Variable in object Path

899459 Newbie
Currently Being Moderated



I have an object :


"/web:window[@title='Repricing Pattern Details -New']/web:document[@name='rhsContent']/web:form[@id='newRepricingPatternRPAT' or @name='repricePatternsForm']/web:select[(@id='selectRPA1' or @name='repricePattern.absoluteRepriceEvent[0].repriceType') and multiple mod 'False']"


in this 'selectRPA1' and [0] are the numeric value which keeps changing.


How can I handle this to make the value get changed for every loop.


I have used below thing, this is not giving any error to me in script but while execution it is saying " Invalid Object Path".


String OBJ_REPRICING_TYPE = "/web:window[@title='Repricing Pattern Details -New']/web:document[@name='rhsContent']/web:form[@id='newRepricingPatternRPAT' or @name='repricePatternsForm']/web:select[(@id='selectRPA"+LEVEL_ADD+"' or @name='repricePattern.absoluteRepriceEvent["+LEVEL+"].repriceType') and multiple mod 'False']";


Thanks in advance.





  • Correct Answers - 10 points
  • Helpful Answers - 5 points