How to store the element ID in variable and used in XPath?
Posted: Wed Nov 21, 2012 4:00 pm
Hello,
Is there anybody let me know how to store the element id from XPath and used in another XPath?
My Scenario is:
I'm creating a component and the component generating the unique component id, other value like class are same for all other components but div id is different. After create the component I want to click on that created component. The issue is, component name could be same.
Please let me know how can I click on same created component?
Can I store the component ID in some variable from XPath and use that variable in another XPath while I want to click over that?
Thanks
Is there anybody let me know how to store the element id from XPath and used in another XPath?
My Scenario is:
I'm creating a component and the component generating the unique component id, other value like class are same for all other components but div id is different. After create the component I want to click on that created component. The issue is, component name could be same.
Please let me know how can I click on same created component?
Can I store the component ID in some variable from XPath and use that variable in another XPath while I want to click over that?
Thanks