GithubHelp home page GithubHelp logo

Comments (8)

jakzal avatar jakzal commented on September 21, 2024

Why can't Element returns an Element itself?

Do you mean a method on element returning an element? Not sure what you're asking :)

from behatpageobjectextension.

DonCallisto avatar DonCallisto commented on September 21, 2024

Do you mean a method on element returning an element? Not sure what you're asking :)

Yes :)

from behatpageobjectextension.

DonCallisto avatar DonCallisto commented on September 21, 2024

So, is that an unwanted feature or it is a missing one?

from behatpageobjectextension.

jakzal avatar jakzal commented on September 21, 2024

I guess no one ever needed it before. If you have a use case, send a PR please! :)

from behatpageobjectextension.

DonCallisto avatar DonCallisto commented on September 21, 2024

I have a real example: form with tabs where every tab have some elements and tab itself (that's not a page, but an element of form itself) is used in other forms.

If that is legitimate, I'll make the PR. Let me know :)

from behatpageobjectextension.

jakzal avatar jakzal commented on September 21, 2024

Let me say it this way: if you have a valid use case and really need this method, submit a PR please :) looks like no one has needed it so far, that's why it's not there.

from behatpageobjectextension.

DonCallisto avatar DonCallisto commented on September 21, 2024

Ok, let's freeze this and wait to see if someone else have a valid use case or if I found new ones that needs this change.

from behatpageobjectextension.

stephenharris avatar stephenharris commented on September 21, 2024

I have another use case: a table element - which contains a number of row elements.

This actually relates to another feature request I have, and for which I'll try to open a PR shortly - and that's the ability to extend InlineElement. These table row elements would need to be InlineElements as they have identical behaviour, but with different selectors (which are not known a priori), but I would like to be able to furnish them with additional methods.

from behatpageobjectextension.

Related Issues (20)

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.