Subject: How to locate element without using attributes - Any reliable methods?
Hey folks!
Struggling here... got this element with ZERO attributes (ugh!). Tried the usual XPath/CSS stuff, but nada.
Anyone know how to locate element without using attributes? Like, are there any sneaky ways? Maybe by text content, position, or even JS tricks?
I’ve heard of `contains(text(),'blah')` but feels flaky. Also, is `nth-child` or sibling selectors worth trying? Or am I doomed?
Pls share any hacks or real-world tips. Desperate here!
P.S. If you’ve faced this, how’d u solve it? Thx in advance! 🚀
(Also, sorry for typos—typing too fast lol)
Hey folks!
Struggling here... got this element with ZERO attributes (ugh!). Tried the usual XPath/CSS stuff, but nada.
Anyone know how to locate element without using attributes? Like, are there any sneaky ways? Maybe by text content, position, or even JS tricks?
I’ve heard of `contains(text(),'blah')` but feels flaky. Also, is `nth-child` or sibling selectors worth trying? Or am I doomed?
Pls share any hacks or real-world tips. Desperate here!
P.S. If you’ve faced this, how’d u solve it? Thx in advance! 🚀
(Also, sorry for typos—typing too fast lol)
