Answer the question
In order to leave comments, you need to log in
How to click on an object in selenium c#?
There are two span objects. How can I click on the last one?
< span aria-checked = " true" class="_8r0M_" role=" switch " tabindex="0">Text< /span >
< span aria-checked = " true" class="_8r0M_ DEMIF " role=" switch " tabindex="0">Text</span>
Where there is DEMIF in the class, it means that the object is selected.
Tried it like this doesn't work
IWebElement sub = Browser.FindElement(By.ClassName("_8r0M_ "));
sub.Click();
Help!!!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question