Currently, I am working on developing a test that needs to click on a link within a div. However, there is an issue with my XPath locator due to some recent changes made by the developer in the UI. Using Xpath may not be a viable solution as the UI is subject to future changes, making it difficult to locate the element.
The div tag that requires the click action looks like this:
<div class="link verticalCenter" ng-click="replaceLocation('login')">Sign in</div>
Note: Using a CSS locator is not an option for me.
I would appreciate any suggestions on how to achieve this task successfully.