Print Page | Close Window

webbrowser control - clicking controls

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=14658
Printed Date: 23 November 2024 at 2:23am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: webbrowser control - clicking controls
Posted By: fuxi
Subject: webbrowser control - clicking controls
Date Posted: 30 June 2009 at 8:11pm
hi,

when clicking eg. on a submit button in a html page by code (eg. using mybutton.click) - it causes a page reload.
the question: how can i detect synchronously if the page has finished loading?

it works nice with .navigate like:

browser.navigate url
msgbox "done!"

for clicking elements i tried it like this: wait until the DocumentComplete event is being fired.
it seems like this method is not very reliable and doesnt always work.
so i was wondering if there was a better method?

thanks in advance,
fuxi



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net