skip to Main Content

JSONPath within Cypress

I'm trying to get a JSON path for the HTML which has the language code DE Here is the sample JSON { "name": "Name", "text": "", "html": "HTML content", "tags": [], "translations": [ { "html": "HTML I don't want", "text":…

VIEW QUESTION

How to find all elements by value in list in JSonPath

I can find a person who has a hobby of "Dance" by doing the following: Xpath = Persons/Person/Hobbies/Hobby[text()="Dance"]/../.. <Persons> <Person> <Name>David</Name> <Age>20</Age> <Hobbies> <Hobby>Sing</Hobby> <Hobby>Dance</Hobby> </Hobbies> </Person> <Person> <Name>Frank</Name> <Age>30</Age> <Hobbies> <Hobby>Sing</Hobby> <Hobby>Read</Hobby> </Hobbies> </Person> </Persons> How would I do…

VIEW QUESTION
Back To Top
Search