M
Mostafa Salaheldien
Guest
Hello,
iam using webbrowser control to load webpage inside the browser.
<button type="button" class="res-actions__item bui-button bui-button--secondary bui-button--wide" disabled="disabled"><!----> <span class="bui-button__text"><span>Submit</span></span></button>
There is abutton in side this page it's already Disable disabled="disabled"
if i used chrome i can remove disabled="disabled"
so i can use this button
how can i do it with code?
what is the problem with my code ?
Dim pageElements As HtmlElementCollection = WebBrowser1.document.GetElementsByTagName("button")
For Each currElement As HtmlElement In pageElements
If currElement.GetAttribute("type").ToLower = "Submit" Then
currElement.OuterHtml = ""
End If
Next
Continue reading...
iam using webbrowser control to load webpage inside the browser.
<button type="button" class="res-actions__item bui-button bui-button--secondary bui-button--wide" disabled="disabled"><!----> <span class="bui-button__text"><span>Submit</span></span></button>
There is abutton in side this page it's already Disable disabled="disabled"
if i used chrome i can remove disabled="disabled"
so i can use this button
how can i do it with code?
what is the problem with my code ?
Dim pageElements As HtmlElementCollection = WebBrowser1.document.GetElementsByTagName("button")
For Each currElement As HtmlElement In pageElements
If currElement.GetAttribute("type").ToLower = "Submit" Then
currElement.OuterHtml = ""
End If
Next
Continue reading...