Thursday, October 17Be an Automation Engineer


Find elements using javascript in protractor

Find elements using javascript in protractor

JavaScript, JS, Protractor

There are many element location strategies available in protractor. Click here to know about element locators in protractor.

by.js is one more element locating strategy available in protractor. We need to pass javascript code as a string or as a function to by.js to get single/multiple element(s).

Pass javascript code as a string:

Element identification in protractor

Element Identification, Protractor

In any UI automation tool, the most important and required step is element identification. Protractor has many element locating strategies like selenium webdriver. You can go through different element locating strategies available in protractor Here and Here.

Lets know about element identification in protractor.

Element identification is different for different situations. Some times we may need to » Continue Reading.

Internals of element identification in protractor

Locators, Protractor

The most important steps in end-to-end tests for any web application are finding DOM elements, interacting with them, and getting information about the current state of your application. So it is better to understand the internal details of element identification mechanism in any UI automation tool like Protractor to write better performing automation tests.

This documentation is an overview of » Continue Reading.

Angular specific locators in protractor

Locators, Protractor

Protractor has inbuilt support for identifying elements which are related to angular js by using ng-model or ng-bind or ng-repeat etc..

Please go through different locating strategies supported by protractor for angular Js applications.

Angular specific locators by.binding

To find elements with text binding. Means the elements which are bound to an angular variable.

Note: For AngularJS version 1.2, the » Continue Reading.

Protractor element locators

Locators, Protractor

Protractor supports all the element location strategies given by selenium like @Id, @xpath, @cssSelector, @name etc.. Along with the selenium supported locators, protractor has unique set of locators particularly to identify elements based on angular js attributes like ng-model, ng-repeat, ng-options, ng-bind etc.. We will explain about how to use selenium supported element locators in protractor by angular js » Continue Reading.