Giter Club home page Giter Club logo

watirways's People

Contributors

jkotests avatar

Watchers

 avatar  avatar  avatar

Forkers

ezeetester

watirways's Issues

Re-organize to use book parts

Leanpub books support a "parts" section, which basically gives another level to break the book down.

The initial thought is that instead of having chapters like "Locating an Element - Basics" and "Locating an Element - Relationships", we can switch to:

  • Locating an Element (a part)
    • Basics (a chapter)
    • Relationships (a chapter)

Collections - Performing an action on each element

Add a section on iterating over a collection of elements.

Start with the basics of using each.

Then we can go into other examples such as:

  • Using other enumerable methods such as map
  • Using the short-cut for blocks - such as .map(&:text)
  • Clicking each link. We would want to discuss how to iterate through a serious of links that navigate to another page and therefore need to be re-located each time. We might also want to consider scenarios where the links cause content to change asynchronously. I recall a situation where we had to click the links from the bottom up instead of top down.
  • Collecting several items into say an array that we export to CSV.

Element existence section has extra heading

The Element Existence section has the text:

Element#exists? checks if the element is in the DOM (or HTML). Element#visible? checks if the element can be seen by the user, but throws an exception if the element is not in the DOM. Element#present? is the same as Element#visible? except that it returns false, instead of an exception, when the element is not in the DOM.
Conclusion

While the three methods are definitely different, I think, at least from my experience, that you should typically be using Element#present?.

There is an extra "Conclusion" text that must have been copied from the original blog post.

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.