Giter Site home page Giter Site logo

protractor-example's People

Contributors

edwardsdl avatar helloanoop avatar qualityshepherd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

protractor-example's Issues

npm install has warnings

npm WARN deprecated [email protected]: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^3.0.0.
npm WARN deprecated [email protected]: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^3.0.0.

as result non all dependencies instals
and when I try to run test I got

Error: No selenium server jar found at the specified location (/Development/Workspase/protractor_example/node_modules/protractor/selenium/selenium-server-standalone-2.47.1.jar). Check that the version number is up to date.

returning to angular after non-angular login doesn't work

I have a spec almost identical to the nonAngularLoginSpec - loading a non-angular page basically the same as nonAngularLoginPage, entering credentials, and then returning to Angular (something like friendsPage). When I test for the equivalent of friendsPage.at(); I always get:

  - Expected false to be truthy.

Presumably this is because browser.ignoreSynchronization = true; is still enabled, but even if I manually add browser.ignoreSynchronization = false; and/or browser.waitForAngular(); before testing friendsPage.at();, protractor still won't wait for angular to load. Any ideas?

./flake conf.js - '.' is not recognized as an internal or external command,

Thanks for this sample project !

I am running this 'protractor-example' in system with Windows 7 OS
I did below steps in my system

  1. git clone https://github.com/qualityshepherd/protractor-example.git
  2. npm install
  3. npm test

I am getting the below error. Can you please help me to resolve this issue.

error

./flake conf.js

'.' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! Test failed. See above for more details.

Use Of "And" Method In The Base Page

Hi There,

I have been using your POM for my own test framework. I must say I like the structure namely a base page and other pages inherit from it.

Within that the base page I use function "And" extensively

this.and = function(arrayOfFunctions)
{

    return EC.and(arrayOfFunctions);

};

However, I need to question whether the function is working per design. As I see it the function only checks the first condition but doesn't check the second condition. I use it pretty like as per the sample project

this.and(

    this.hasText($('h1.site-title'), 'Quality Shepherd'),
    this.isClickable(this.postTitleLinks.first())

);

Any thoughts on the above? Many thanks in advance. Btw your sample project has been extremely useful ๐Ÿ‘ .

Unable to run code after cloning

I have cloned code and try to run from my end but getting below error:
E/configParser - Error: Cannot find module 'babel-register'
at Function.Module._resolveFilename (module.js:538:15)
at Function.Module._load (module.js:468:25)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Object. (/Users/test/protractor_example/conf.js:2:1)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)

Can you please upload latest working code.. Thanks a lot!!

PS: My node version is 8.9.4 and running in mac environment

node flake error

I followed the same steps and received the same error as in issue #6

However, when I run "node flake", I receive the error:

protractor-example\node_modules.bin\protractor:2
basedir=$(dirname "$(echo "$0" | sed -e 's,\,/,g')")
^^^^^^^

SyntaxError: missing ) after argument list
at new Script (vm.js:80:7)
at createScript (vm.js:274:10)
at Object.runInThisContext (vm.js:326:10)
at Module._compile (internal/modules/cjs/loader.js:664:28)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:754:12)
at startup (internal/bootstrap/node.js:283:19)

Using multi to parse output
Re-running tests: test attempt 2

Tests failed but no specs were found. All specs will be run again.

protractor-example\node_modules.bin\protractor:2
basedir=$(dirname "$(echo "$0" | sed -e 's,\,/,g')")
^^^^^^^

SyntaxError: missing ) after argument list
at new Script (vm.js:80:7)
at createScript (vm.js:274:10)
at Object.runInThisContext (vm.js:326:10)
at Module._compile (internal/modules/cjs/loader.js:664:28)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:754:12)
at startup (internal/bootstrap/node.js:283:19) #

As I missing a step?

I am using Windows.

Bug: pageLoaded "and" (isVisible, inDom) condition: ignored

Hi, I'm new to protractor & selenium and I'm having difficulties to understand how your example work for the pageLoaded part.

I'd expect that the page is loaded and if there is e.g. a condition e.g. for the githubPage this.pageLoaded = this.isVisible(this.username); then the test will fail is the username text is not visible in the page, but it doesn't.

E.g. I tried to change to this.pageLoaded = this.isVisible('whatever_text_you_want');

But the test doesn't fail. Same also in the nonAngularLoginPage:

    this.pageLoaded = this.and(
        this.isVisible($('#a_non_existing_id'))
    );

Again I run the tests and no error.

What I expected: if I set a selector, for pageLoaded to throw an error if the element I specified in the selector is not visible... please check also the other methods in the basePage e.g. inDom etc. or let me know how I'm supposed to understand this.

I'm testing inside WebStorm (debug/run protractor).

At the moment all tests are green except 1 failing: should add a new friend (but this fails for another reason, not because of the pageLoaded).

Cheers ;)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.