I trying to click on this button (it is clearly on the page and in view):
<button class="ui tertiary button" data-ng-click="addRoom()" data-ng-disabled="pendingRequests >= 1">ADD ROOM TO CRUISE CART</button>
Here is my code:
driver.FindElement(By.CssSelector("button[data-ng-click^='addRoom']")).Click();
It always throws this error:
OpenQA.Selenium.ElementNotVisibleException : Element is not currently visible and so may not be interacted with
Is Selenium WebDriver compatible with angular JS?
Change your code to the following: