YES.
Selenium Interacts with Web Elements ( I.e. HTML content )
to perform Actions.
So, underlying technology is not a
constraint for selenium. It works as expected.
Then Why Protractor?
Let’s look at a simple AngulerJS
application view souce.
| |||||||||||||||||||||||||||||||||||||||||||||
Were you able to see
any known Attributes in any Tags to locate an element using By class methods?
I.e ID, NAME etc.
NO rite?
Were you able to see
anything new in this code?
Attributes:
ng-controller
ng-model
ng-options
ng-repeat
Can we perform required
Actions on the elements which contains above attributes?
Yes, But Could be quite
difficult way to achieve required actions.
Again, Why these new
attributes? Who brought in?
AngulerJS development
team, so there is no escape.
So, will be happy if I give
you easier way to locate elements and perform Actions on top of it.
Yes.
Eg:
1.
element.all( by.repeater('result in memory').column('{{
result.operator }}'));
2.
element(by.css('some-css'));
3. element(by.model('item.name'));
4. element(by.binding('item.name'));
more info: http://www.protractortest.org/#/api
Salient features of the Protractor Automation tool:
1. Built on the top of WebdriverJS and Selenium server
2. Introduced new simple syntax to write tests
3. Allows running tests targeting remote addresses
4. Can take advantage of Selenium grid to run multiple browsers at once
5. Can use Jasmine or Mocha to write test suites
|
|||||||||||||||||||||||||||||||||||||||||||||
I really enjoy the blog.Much thanks again. Really Great selenium online training
ReplyDelete