How can i edit a properties for a button in webpage after pageload

  • Thread starter Thread starter Mostafa Salaheldien
  • Start date Start date
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...
 

Similar threads

M
Replies
0
Views
123
Mostafa Salaheldien
M
M
Replies
0
Views
132
Mostafa Salaheldien
M
M
Replies
0
Views
105
Mostafa Salaheldien
M
M
Replies
0
Views
108
Mostafa Salaheldien
M
Back
Top