-
Alfredo Santibanez
- PowerBuilder
- Saturday, 28 February 2026 06:53 PM UTC
Hi
It is possible to substitute the use of ole_ie.ConnectToNewObject("InternetExplorer.Application") using the new web browser control?
I am doing something like this, but now I cannot find a .Document property
url ="*******"
ole_ie.Navigate(url)
// Wait for page to load completely
DO WHILE ole_ie.Busy OR ole_ie.ReadyState <> 4
Yield() // Let PB process events
LOOP
// Fill the input field (by element ID)
inputValue = xxxx
ole_ie.Document.getElementById("xx").Value = inputValue
// Click the button (by element ID)
ole_ie.Document.getElementById("xx").Click()
// Wait for the result page or AJAX update
DO WHILE ole_ie.Busy OR ole_ie.ReadyState <> 4
Yield()
LOOP
sleep(2)
CATCH (Throwable e1)
// MessageBox("Automation Error", e1.GetMessage())
FINALLY
update *******
Best Regards
Alfredo
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.