U
U
Uncle Bogdan2021-05-12 21:36:26
Parsing
Uncle Bogdan, 2021-05-12 21:36:26

How to get/parse the element for .click()?

Tipo found here a little joke called .click. I need to click on a button on this site, the "Search" button, that blue one.
But how to get this element in the program?!
I also noticed that if you open it in a normal browser, then there is no such menu that appears with CefSharp

Photo from the program
609c1fe520e48658910280.png
(Go to the browser yourself and see what is not there.)

I use - CefSharp Parser
- CsQuery/AngleSharp

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Sundukov, 2021-05-13
@alekciy

The menu shown on the screen appeared with me. Opened with FireFox. Probably tied to some kind of cookie.
To solve the task, you need to use wait.until from WebDriver on the result of the XPath expression:
//button[@alt="Найти"]
Before that, you may need to close the popup from the screen.
I don’t write in C#, but the approach to working with WebDrive is approximately the same in all languages. The code will be something like this: https://www.lambdatest.com/blog/explicit-fluent-wa...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question