Giter VIP home page Giter VIP logo

protractor-cookbook's Introduction

protractor-cookbook CircleCI Status

A collection of bite size examples.

examples

protractor-cookbook's People

Contributors

cnishina avatar igniteram avatar jags14385 avatar juliemr 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

protractor-cookbook's Issues

implicit time issue

alternative for browser.sleep()???
i have used browser.manage().timeouts().implicitlyWait(5000); inside on prepare() but still it didn't resolved my issue

Clear performance logs

HI,

There is a useful example for capturing performance logs in your repo(Thanks for that). I am trying to make use of it by logging my network calls to a text file. However, I am noticing that it preserves call from my previous pages as well and therefore when I filter the calls, I see more than expected number of network calls.
Is there a way to clear the performance calls before I execute my last test step and collect logs? Here is my code. Any suggestion would be helpful

After(async function(scenario) {
    console.log("After Hook");
    if (scenario.result.status === Status.FAILED) {
        // screenShot is a base-64 encoded PNG
         const screenShot = await browser.takeScreenshot();
         this.attach(screenShot, "image/png");
     }
     await console.log("After if");
     let browseLogs = await browser.manage().logs().get('performance');
    //  let browseLogs = await 

     await console.log(browseLogs.length);
     browseLogs.forEach(async (logE)=> {    
                    
        var message = await JSON.parse(logE.message).message;  
        if(message.params.response.url.includes(ADOBE_ANALYTICS_NETWORK)) 
          {
            await fs.appendFile(logs, JSON.stringify(message), (err) => {
                if(err) throw err;            
             });  

        }   
        
});
});

These are my config.ts

 capabilities: {
        'browserName': 'chrome',
        'chromeOptions': {
          'perfLoggingPrefs': {
            'enableNetwork': true,
            'enablePage': false
            //'enableTimeline': false
          }
        },
        loggingPrefs: {
          performance: 'INFO',
          browser: 'ALL'
        }
      },

Docker `--link` ro be deprecated -request updated cookbook for Docker

Request update docs for Angular's prtoractor cookbook using Docker.

--link is being used for the browser nodes. This is now considered legacy in Docker and may be removed:

Warning: The --link flag is a deprecated legacy feature of Docker. It may eventually be removed. Unless you absolutely need to continue using it, we recommend that you use user-defined networks to facilitate communication between two containers instead of using --link. One feature that user-defined networks do not support that you can do with --link is sharing environmental variables between containers. However, you can use other mechanisms such as volumes to share environment variables between containers in a more controlled way.

Fix docker instructions for the seleniumAddress

After reviewing the Docker instructions, the seleniumAddress should be the docker container of the selenium grid. The documentation should have instructions to get the container's IP address.

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.