Giter Club home page Giter Club logo

protractor-ff-issue's Introduction

Protractor Firefox issue demo

This project is created to demonstrate issue with Firefox. The code is copied from example in EggHead.io lesson.

Installation

npm install
bower install
./node_modules/protractor/bin/webdriver-manager update

Running

Run app, Selenium WebDriver and tests in separate shells.

npm start # start project
npm run wd # start Selenium WebDriver
npm run test # run protractor tests
npm run test-ff # run protractor tests in Firefox

Explanation

Here is the main extracts from code:

app/stylesheets/app.css

.my-sick-button {
  text-transform: uppercase;
}

app/templates/index.tpl.html

<button>Button 1</button>

test/e2e/index/index.spec.js

function () {
  element(by.buttonText('Button 1')).click(); // fails in Chrome
  element(by.buttonText('BUTTON 1')).click(); // fails in Firefox
}

When the text is transformed via CSS property text-transform to uppercase, Chrome can find the element only by capitalized text (same as user see it). In the same case, Firefox can find the element by original text (same as written in HTML).

protractor-ff-issue's People

Contributors

igorshubovych avatar

Watchers

 avatar  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.