Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="row ng-scope" ng-repeat="post in posts">
- <div class="col-md-7">
- <h4 class="ng-binding">Topic - ABC</h4>
- <div class="text-right">
- <button class="btn btn-none btn-sm" ng-click="posts.newPost()">
- Create Post
- </button>
- </div>
- </div>
- </div>
- <div class="row ng-scope" ng-repeat="post in posts">
- <div class="col-md-7">
- <h4 class="ng-binding">Topic - XYZ</h4>
- <div class="text-right">
- <button class="btn btn-none btn-sm" ng-click="posts.newPost()">
- Create Post
- </button>
- </div>
- </div>
- </div>
- <div class="row ng-scope" ng-repeat="post in posts">
- <div class="col-md-7">
- <h4 class="ng-binding">Topic - EFG</h4>
- <div class="text-right">
- <button class="btn btn-none btn-sm" ng-click="posts.newPost()">
- Create Post
- </button>
- </div>
- </div>
- </div>
- var button = $$(by.repeater('post in posts')).get(1).$(by.css('[ng-click="posts.newPost()"]'))
- button.click(); // click is not showing up
- var button = element.all(by.repeater('post in posts')).get(1).$('[ng-click*=newPost]');
- button.click();
- var button = element.all(by.repeater('post in posts')).filter(function (post) {
- return post.$("h4").getText().then(function (postTitle) {
- return postTitle === "Topic - XYZ";
- });
- }).get(1).$('[ng-click*=newPost]');
- button.click();
- var post = element.all(by.repeater('post in posts')).get(1);
- var button = post.element(by.buttonText("Create Post"));
- button.click();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement