M
Mostafa Salaheldien
Guest
Hello everyone,
iam using this code for getting the outerhtml for this button its working 100%
that button already exist in popup windows
For Each elem As HtmlElement In WebBrowser1.Document.GetElementsByTagName("button")
If elem.GetAttribute("className").Contains("res-cancel__btn-main bui-button bui-button--destructive") Then 'Get the InnerText of the Element End If
Textbox1.text = elem.Outerhtml
End If
Next
but when iam tried to click that button nothing happened with this code
For Each elem As HtmlElement In WebBrowser1.Document.GetElementsByTagName("button")
If elem.GetAttribute("className").Contains("res-cancel__btn-main bui-button bui-button--destructive") Then 'Get the InnerText of the Element End If
elem.Focus()
elem.InvokeMember("Click")
End If
Next
Continue reading...
iam using this code for getting the outerhtml for this button its working 100%
that button already exist in popup windows
For Each elem As HtmlElement In WebBrowser1.Document.GetElementsByTagName("button")
If elem.GetAttribute("className").Contains("res-cancel__btn-main bui-button bui-button--destructive") Then 'Get the InnerText of the Element End If
Textbox1.text = elem.Outerhtml
End If
Next
but when iam tried to click that button nothing happened with this code
For Each elem As HtmlElement In WebBrowser1.Document.GetElementsByTagName("button")
If elem.GetAttribute("className").Contains("res-cancel__btn-main bui-button bui-button--destructive") Then 'Get the InnerText of the Element End If
elem.Focus()
elem.InvokeMember("Click")
End If
Next
Continue reading...