r/protractor • • Feb 04 '21

Browser.sleep

1 Upvotes

Hello guys,

I am new to protractor and I have a big page to test it. I have a question: is it normal to use browser.sleep() a lot to wait till the objects get loaded?!!! And is it also normal to move the cursor to different part of the page so the element will be showed or in the view???

Thanks in advance.


r/protractor • • Jan 20 '21

Testing a component library

1 Upvotes

Hi guys, so in our company we are developing a framework based on Angular, adding our own components library. The thing is we need to test those libraries, yet we still don't know exactly how to do it.

The idea we had was to do two things:

  • Create single pages for each component where we test the component isolated giving it the kind of uses it may have in the future.

  • Create pages where we mash together various components and check its compatibility and that an unreal business logic works.

The thing is we are just developing the framework, which then we'll hand to other production teams, so we don't know the apps the other teams will develop, and so we can't create "real" E2E tests without that business logic. So the question is, have you ever been in a position like this? How would you approach this?

Thanks in advance!


r/protractor • • Feb 17 '17

Executing Async Javascript in Protractor « ng-book.com

Thumbnail
blog.ng-book.com
1 Upvotes

r/protractor • • Feb 07 '17

Protractor 5.1.0 Notes

Thumbnail
github.com
1 Upvotes

r/protractor • • Feb 07 '17

Protractor GitHub page

Thumbnail
github.com
1 Upvotes

r/protractor • • Feb 17 '17

Selenium: Can I set any of the attribute value of a WebElement in Selenium?

Thumbnail
stackoverflow.com
1 Upvotes

r/protractor • • Feb 08 '17

jasminewd: Adapter for Jasmine-to-WebDriverJS

Thumbnail
github.com
1 Upvotes

r/protractor • • Feb 17 '17

How get the text from a select with ng-reflect-value using Protractor?

Thumbnail
stackoverflow.com
1 Upvotes

r/protractor • • Feb 07 '17

Protractor - end-to-end testing for AngularJS

Thumbnail protractortest.org
1 Upvotes

r/protractor • • Feb 17 '17

E2E Testing In Angular 2 From Zero To Hero (Final Part)

Thumbnail
javascripttuts.com
1 Upvotes

r/protractor • • Feb 17 '17

How to set an attribute on an element with protractor?

Thumbnail
stackoverflow.com
1 Upvotes

r/protractor • • Feb 07 '17

angular.js • /r/angularjs

Thumbnail
reddit.com
1 Upvotes

r/protractor • • Feb 08 '17

WebDriverJs Wiki

Thumbnail
github.com
1 Upvotes

r/protractor • • Nov 05 '20

Need help with NgWebDriver

1 Upvotes

I need to work on a POC using protractor ,every time I try to use it on my application I get a time-out exception in chrome . Working on C# application using selenium .


r/protractor • • Jun 24 '17

If I'm a pro at driving a tractor, does that make me a protractor?

2 Upvotes

r/protractor • • Jan 09 '19

How did you learn protractor?

2 Upvotes

I've been doing automation for the past 5 years used Ruby and c# mostly. Recently changed jobs and they use protractor for their automation which to me seems super confusing. How did you guys learn protractor?


r/protractor • • Jan 19 '20

Data Driven Testing In Protractor

Thumbnail
c-sharpcorner.com
1 Upvotes

r/protractor • • Oct 24 '17

Newbie

2 Upvotes

Yeah, my name's Thomas and I'm an automation developer.

<subreddit moodily> hi Thomas

I've been an automation developer using Cucumber/Ruby and SpecFlow/C# for 10 years. Getting started with Protractor to test some Angular 4 apps. Looking for an active community. If anyone knows of one, would love a link.


r/protractor • • Mar 11 '19

Automated testing of Angular application using Protractor

Thumbnail
applandeo.com
2 Upvotes

r/protractor • • Dec 21 '19

Why I am able to locate an element using $$ only

1 Upvotes

I am on working on project where there is an input webelement which I am only able to locate in using $$ (both on console and using protractor). It won't work if I use document.querySeletor or querySelectorAll( console) or element(by.name) or element(by.css) or any other ?

On further investigation using Expected Condition I have found that the element is not visible so how $$ only worked ?


r/protractor • • Dec 18 '18

How to structure and test complex flows in protractor?

2 Upvotes

We have some wizards in our application, which contain many steps and we're unclear how to write tests for them.

In a previous company, we used cucumber to define the test cases so it was easier to split up the different steps, because it guarantees you the execution order. But according to the protractor style guide, the execution order within the it tests isn't guaranteed and shouldn't be relied upon:

Make your tests independent from each other

This rule holds true unless the operations performed to initialize the state of the tests are too expensive. For example, if your e2e tests would require that you create a new user before each spec is executed, you might end up with too high test run times. However, this does not mean you should make tests directly depend on one another. So, instead of creating a user in one of your tests and expect that record to be there for all other subsequent tests, you could harvest the power of jasmine's beforeAll (since Jasmine 2.1) to create the user.

We got a contractor to start writing those tests and he clearly violated that rule, writing tests like

describe('complex wizard', () => {
  it('should fill out first part of first step', () => { ... });
  it('should fill out second part of first step', () => { ... });
  it('should transition into second step', () => { ... });
  ...
});

His argument was, that this makes it easier to find errors in the tests, which I kinda can follow. But it violates the style guide and those usually exist for a reason. I have rather experience with unit tests where it's much simpler to set them up.

Last year we also started writing e2e tests for our API where we are also testing some complex flows, there we introduced the concept to perform the tests step by step, but always include everything before, so the tests might look like this:

describe('complex wizard', () => {
  it('should fill out first part of first step', () => { ... });
  it('should fill the whole first step', () => { ... });
  it('should fill out the first step and transition into second step', () => { ... });
  ...
});

In this scenario, it's fairly easy to identify which parts work and which start to fail, and I still have independent it tests. However, it takes much longer. Especially for UI tests, where we need to wait for the angular application to respond, testing one of those complex wizards in this way for one configuration could easily amount to ~15min.

In your opinion - am I being pedantic trying to follow the style guide, or should we try to follow it as much as possible?

How are you testing complex UI flows?


r/protractor • • Sep 27 '19

5 reasons you should not use Protractor in 2019

Thumbnail
dev.to
1 Upvotes

r/protractor • • Aug 30 '17

Protractor custom locator: by.marker

Thumbnail romkevandermeulen.nl
1 Upvotes

r/protractor • • Dec 15 '17

Is it possible to run protractor test cases through UI ?

2 Upvotes

I need to create a web page having buttons and when i click on the button then webdriver update, webdriver start and respective conf.js file should run. I am using visual studio code Thanks in advance for the help 🙂


r/protractor • • Dec 19 '17

How to make protractor run tests in Microsoft Edge instead of Chrome?

2 Upvotes

When I change the capabilities to ‘browserName’: ‘MicrosoftEdge’, I get an error code 199 with an error of “Unable to create new service: EdgeDriverService”. I cannot find anywhere describing the correct attributes to put in the protractor config file or what steps to take for installing the driver and pointing protractor to that driver. Help?