A
A
alasqa2018-04-08 10:16:46
C++ / C#
alasqa, 2018-04-08 10:16:46

[C#] How to click on element without id?

There are two elements, you just need to click on them, but because they don't have an id - GetElementById("test").InvokeMember("click");
does not work. How then can this click be implemented differently?
It's only a few days in C#, don't throw stones, but I need to know the solution.
Here are the two elements:

<a href="тут ссылка" class="title-subject">test</a>

and
<a href="ссылка" target="_blank" tabindex="-1" rel="external">asd</a>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2018-04-08
@freeExec

So you collect everything <a>...</a>and filters out of them on a whim what you need.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question