09-08-19, 09:25 PM
السلام عليكم ورحمه الله وبركاته
اريد الضغط علي زر داخل صفحة داخل الويب برزور داخل كلاس اليكم كود الزر
وهذا الكود الذي استخدمه
اريد الضغط علي زر داخل صفحة داخل الويب برزور داخل كلاس اليكم كود الزر
PHP كود :
<button class="bui-button bui-button--large bui-button--wide" type="submit"><span class="bui-button__text">Next</span></button>
PHP كود :
'get collection of all div in the webpage"
For Each divSect As HtmlElement In WebBrowser1.Document.GetElementsByTagName("div")
'get the div which has the tag of Two Cell"
If divSect.OuterHtml.Contains("bui-button bui-button--large bui-button--wide") Then
'get the button inside the div which has the tag of Two Cell"
For Each elem As HtmlElement In divSect.Children
If elem.GetAttribute("bui-button bui-button--large bui-button--wide") = "button" Then
elem.InvokeMember("click")
End If
Next
End If