Skip to content

Replacing the value inside an element #48

Description

@computersrmyfriends

Hi,
Thanks for your wonderful lib.
I'm struggling with replacing the value inside a div.

Here's an example of what I'm facing:

<div>hello</div>
<div>world</div>

The div's don't have id or class. I just need to replace the hello with hi after selecting the div based on the content inside the element. I need to achieve this somehow. I would appreciate any help.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions