https://cypress.io logo
How to get image value from list
# i-need-help
c
it is necessary to check the presence of a demo company in the list of all companies. the demo company is marked with a special image and can be at the top of the list or at the bottom. the number of companies in the list may also change. it is necessary to check that the demo company is on the list
g
is that an image or an element?
c
element
g
so you can find
li
element that has
p
element with text
demo
inside?
Search my examples https://cypress.tips/search and you will see simple examples like this. I will add your example (li with p with text "demo")
c
thanks - it helped!