Closed sirj77 closed 8 years ago
Can you append :nth-child(0)
to the css selector?
Yes, you are right, it is one way how to do it, thanks. Actually, I managed to find a unique selector for my element.
But anyway, I guess, there is not possibility to rewrite method "GoToSomePage" using .ElementAt(0) in that construction? (return Navigate.To
Yeah - I don't think so. You need to pass a By expression to NAvigate.To that will return a single item.
Hi,
I've bumped into some problems that I cannot solve by myself. Is there a way how I can use this expression:
for my interaction method throughout the pages:
I mean that I need to chose an element by index (because there are two or more elements on the page and I don't have a unique one) and go to an appropriate page. I know that there is no possibility to write like that:
How to rewrite this method properly? Thanks a lot for suggestions!