You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Click(where => where.TextIs("....")) clicks the first element where text is .... but in some situations there can be more buttons with same text and you need to click an element which is at a specific position.
We can either add a new optional parameter which is positionAt in Click method and default value could be 0 Or we can add a new method ClickWhereXpath(string xpath) and then in xpath we can include position selector e.g. ClickWhereXpath("//button[text() = 'Delete'][2]")
The text was updated successfully, but these errors were encountered:
Click(where => where.TextIs("...."))
clicks the first element where text is .... but in some situations there can be more buttons with same text and you need to click an element which is at a specific position.We can either add a new optional parameter which is
positionAt
in Click method and default value could be 0 Or we can add a new methodClickWhereXpath(string xpath)
and then in xpath we can include position selector e.g.ClickWhereXpath("//button[text() = 'Delete'][2]")
The text was updated successfully, but these errors were encountered: