xpath in cypress could not use a click acitivity?

14 Views Asked by At

In my project I am using xpath in cypress(I have installed as instruction did not make an error)

where

cy.xpath("//span[@class='ui-button-text ui-c']").click()

click()-> function is avaiable but I receive a error

""can only be called on a single element. Your subject contained 24 elements. ""

Why it is and how do i solve this issue!!!?

0

There are 0 best solutions below