CefSharp - Get Value of HTML Element

后端 未结 5 1140
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-12 10:20

How can I get the value of an HTML element with CefSharp?

I know how to do with this default WebBrowser Control:

Dim Elem As HtmlElement = WebBrowser         


        
5条回答
  •  说谎
    说谎 (楼主)
    2021-01-12 10:40

    With CefSharp,you can get elements' value by javascript.

    For example,

    m_browser.ExecuteScriptAsync("document.GetElementById('id1');");
    

    About javascript,you can learn it from w3s.

    And I think you should read this passage.

    Have fun.

提交回复
热议问题