Skip to Content
0
Former Member
Mar 06, 2014 at 06:00 AM

How to connect to chrome browser in Powerbuilder

2714 Views

Hi all,

I would like to connect to chrome browser instead of internet explorer.

Please find my sample code below.

IF IsWindow(il_hwnd) = 0 THEN
ioo_so_oleobject.DisconnectObject()
li_rc = ioo_so_oleobject.ConnectToNewObject("internetexplorer.application")
IF li_rc <> 0 THEN
RETURN FALSE
END IF


String ls_ie
ls_ie = ioo_so_oleobject.Fullname()
ls_ie = ioo_so_oleobject.name

If i use the below code, its not working..


li_rc = ioo_so_oleobject.ConnectToNewObject("chrome.application")

li_rc return -2(-2 = Class name not found).

Could you please suggest upon this.. (how to connect to chrome instead of IE)

Regards,

Krishna