So I've been stuck on this one, I've done googling and have not found a solution other then switching to ASP.net. I am trying to sign out of a website, I can see that there is a drop down menu that must be clicked before hand. This is the html element I get from Inspect element and I am unable to click it through invoke click.
Clicking the above should drop down a menu where sign out is an option, but I can't even click the menu.
I have tried finding it thru the class "se-menu", this gives me a null exception, I've tried the aria-label also. Does the expanded value need to be changed also? I'm unsure how to go about this now.
I've been switching different codes to click it, but this is what I have now.
Huge thanks for the help 🙂
Code
<button class="se-menu" aria-expanded="false" aria-label="Navigation Menu">Clicking the above should drop down a menu where sign out is an option, but I can't even click the menu.
I have tried finding it thru the class "se-menu", this gives me a null exception, I've tried the aria-label also. Does the expanded value need to be changed also? I'm unsure how to go about this now.
I've been switching different codes to click it, but this is what I have now.
Code
Dim allelements As HtmlElementCollection = WebBrowser1.Document.All
For Each webpageelement As HtmlElement In allelements
If webpageelement.GetAttribute("class") = "se-menu" Then
webpageelement.InvokeMember("click")
End If
NextHuge thanks for the help 🙂

