.net - clicking a button without id -


hello people ive tried multiple ways of trying click button without , id code below

for each element htmlelement in webbrowser1.document.getelementsbytagname("button")   if element.innertext.contains(" yt-uix-button yt-uix-button-primary yt-uix-button-   size-default")     element.invokemember("click")     exit   end if  next element 

error: object reference not set instance of object. 


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -