Difficulty capturing element. Webdriver with C#

Asked

Viewed 61 times

0

I’m having trouble capturing information from a span.

I tried several ways (ID, Xpath, Csselector) but there is no way.

If anyone could shed some light, I’d appreciate it. This is the image of the code and the information I need to capture.

inserir a descrição da imagem aqui

1 answer

0

I needed to use this code to return the value of the screen. this works using Chromiumwebbrowser, but the principle is the same, for at the end of the day is to send a JS.

browser.EvaluateScriptAsync(@"function retornaSituacao() {
               var texto = document.getElementById('ct100_ContentPlaceHolder1_VersaoLabel').[0].innerText;
               return texto;
}
retornaSituacao();");

Browser other questions tagged

You are not signed in. Login or sign up in order to post.