What do you think about this problem ? And how can i solve that?
I wanna get the phone number of Html source this link :
TypeScript
//**
private void button1_Click(object sender, EventArgs e)
{
while (webBrowser1.ReadyState != WebBrowserReadyState.Complete)
{
Application.DoEvents();
}
HtmlElement H_EL = webBrowser1.Document.GetElementById("phone_field");
H_EL.GetElementsByTagName("A")[0].InvokeMember("click");
MessageBox.Show(H_EL.GetElementsByTagName("b").Count.ToString());
MessageBox.Show(H_EL.GetElementsByTagName("b")[0].InnerText);
}
private void button2_Click(object sender, EventArgs e)
{
webBrowser1.Document.InvokeScript("showContactInfo");
}
//**this is my problem
This phone number isn't in source HTML source and show this when I click on java script
I do this with another solution ,when I click F12 in googlechrome and write this code in console after that show the phone number
This phone number isn't in source HTML source and show this when I click on java script
I do this with another solution ,when I click F12 in googlechrome and write this code in console after that show the phone number
//**
$(
).trigger();alert($(
).text());//**
How can I do like this in #c
__
before click javascript button
after click javascript button

Answers
Know the answer? Post it. Somebody with the same question will find it here.