I can't seem to find the element with the specified class name. Here's a snippet of the HTML code:
<a class="j-js-stream-options j-homenav-options jive-icon-med jive-icon-gear" title="Stream options" href="#"></a>
I attempted to generate an xpath using both the class and title attributes in Eclipse but had no success. Examples:
//a[@title='Stream options']
//a[contains(@class,'j-js-stream-options j-homenav-options jive-icon-med jive-icon-gear')]
..
None of the above methods worked, even after trying several others. My goal is to click on this element and perform some action. I need to find the dynamically created xpath so that I can interact with the element in future executions.
Note: This element is initially hidden and only appears after clicking on another element. Its xpath changes each time it's generated.
Any advice or suggestions would be highly appreciated. Thank you.