Giter VIP home page Giter VIP logo

poll-everywhere-puppeteer-project's Introduction

Poll Everywhere Take Home Challenge

Directions:

Using a JavaScript framework of your choice, such as puppeteer, selenium, or similar, please automate clicking on a vote from here:

https://pollev.com/qainterview880

And automate observing the response here.:

https://viz.polleverywhere.com/multiple_choice_polls/AxE2ULWiYsaGgmZ0Zundf

Deployed Site

(Due to the API being depolyed on Render's free tier service, there is an extended run time for the responses from the API, take this into consideration when accessing the Live Site. For faster runtime, run the server locally)

Project Overview

  • Project Description:

    • This repository contains a client-side single webpage demonstrating the functionality of Puppeteer's framework.
    • The main goal is to automate testing and responses by accessing an original poll webpage.
  • User Choices:

    • Users can choose either a random option or provide a specific response.
  • Displaying Results:

    • Upon selecting a choice, the updated results from the results page are displayed to the user.
    • A detailed response from the API (status code, page scraping data) is printed in the console
Open DevTools in your browser
Select the Console tab
  • Status Codes:
    • Status codes are included to represent whether the automated framework successfully accessed the webpages.

Technologies Used

  • Languages:

    • JavaScript
    • HTML
    • CSS
  • Framework/Library:

    • Puppeteer
    • SuperTest

Usage

  • Installation/Running the Project:
    • Clone this repo
    • Navigate to the cloned repository's directory on your command line. Then, run the following command:
npm install

This will install the libraries needed to run the tests.

cd back_end
npm install
npm start

This will start the back end Express Server

  • Testing with Supertest:
    • The back end Express server includes Supertest test functions to check for:
      • Response codes
      • Expected response.body object properties and values
      • Testing for the content type in the headers response to be JSON.
    • Navigate to the back_end directory and run:
npm test

This will run all the test included.

  • Viewing the Client Side (Choose One):

poll-everywhere-puppeteer-project's People

Contributors

destinyjoyner avatar

Stargazers

 avatar

Watchers

 avatar

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.