I am writing a simple personal app that has a browser control and I want to "refresh" it often By default, there are monkey scripts that do this, but I'm trying to incorporate my personal style into it.
Either way, I have looked around and found everything, but what can I do in SASHAR using the browser controls? / P>
I have found this: // Link the ID from the web form, Button = Webbutton = Gmail. Document Get Element BIID ("Refresh"); // Now click theButton.InvokeMember ("Click");
But if the button comes back with a null, it will not speak anything.
Anyone have any suggestions?
I used javascript, but it's been a while but has given other answers and comments. With that element there is no real ID, do something like the following:
- Find all div with a feature of role == 'button' and an INHML == 'refresh' .
- Once found the right InnerHtml, get the element.
- Click on the element found.
Then, it can be smoke-blowing, but I think I'll take it out of there.
Edit : Just realized that you are doing it with C # and a browser control; However, this concept will still be similar.
Comments
Post a Comment