<div class="admin-welcome-hero"> <h1>Welcome to the Meeting System</h1> <div class="admin-intro"> Click on a current or previous meeting to edit or review details, or create a new meeting. </div> <button class="btn btn-lg new-meeting" ng-click="vm.newmeeting(this);"> Create a new meeting </button> </div>
I have created the above button, that I need to 'click' through to selenium. This is my first workflow testing that I am doing, and I am having issue with this button, because it doesn't have an id.
I tried the following, and similar, even replacing with all three tags, and in combination.
What am I missing? Do I need to reference other html tags around it? Or can I focus on the button directly.:
var newMeetingButton = Driver.Instance.FindElements(By.CssSelector("btn")); var newMeetingButton = Driver.Instance.FindElements(By.CssSelector(".btn"));