In my test I land on a page with a RoundContainer. When the test loads the page, the container can be either in an expanded or a collapsed state. The container uses an image to toggle the state of the container. If it's in an expanded state, it will have an image element where the src=minus.gif. If it's in a collapsed state, it will have an image element where the src=plus.gif.
What I need the test to do is, if the container is collapsed when the page is loaded then expand the container by clicking on the image element (plus.gif). The problem is, if I target that element (plus.gif) and the test runs where the page loads the container in an expanded state, then the test will fail because it can't find the image element where src=plus.gif.
What are my possible solutions?
What I need the test to do is, if the container is collapsed when the page is loaded then expand the container by clicking on the image element (plus.gif). The problem is, if I target that element (plus.gif) and the test runs where the page loads the container in an expanded state, then the test will fail because it can't find the image element where src=plus.gif.
What are my possible solutions?