Giter Club home page Giter Club logo

Comments (3)

lizaiv77 avatar lizaiv77 commented on June 8, 2024

@pozil My apologies for the delay, at the moment unable to create scratch org (asking for help in various slack channels) and check UI. If you try $$("lightning-button[label='Get Object Info']") in browser console, does it find the element?
Can you inspect the element and post elements tree starting from WireGetObjectInfo root?

It just seems weird that something like that would be UTAM related issue. Also feel free to reach out in slack, jump on the call and investigate if it's blocking you.

from utam-js-recipes.

lizaiv77 avatar lizaiv77 commented on June 8, 2024

Ok, so I finally got scratch org working and now I'm confused about what are you trying to do @pozil.
Element "lightning-button" does not have a label, it does not have any attributes in fact, so selector with label attribute or any other attribute does not work and should not work. It would work only if HTML was <lightning-button label='Get Object Info'>...<lightning-button>

From console selector with label attribute returns nothing:
Screen Shot 2022-01-12 at 8 45 28 PM

Element inspection:
Screen Shot 2022-01-12 at 8 44 25 PM

Perhaps I'm missing something and you modified UI? Again pls feel free to ping me in slack with additional questions.

from utam-js-recipes.

pozil avatar pozil commented on June 8, 2024

Sorry, that's my bad, you have the right code. I was looking at the source code in the repo when I built my UTAM test and I was making the bad assumption that the LWC template would also have the same attributes but as you pointed out the actual code in the page doesn't have the attribute.

<lightning-button label="Get Object Info" onclick={handleBtnClick}></lightning-button>

Thanks for helping and figuring it out.

from utam-js-recipes.

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.