It seems that the PageTitle can only be fetched, if the #PB_Web_Edge flag is not set. How can i get it to work with #PB_Web_Edge?
I am grateful for suggestions!
Code: Select all
If OpenWindow(0, 0, 0, 600, 300, "WebGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
WebGadget(0, 0, 0, 600, 300, "https://duckduckgo.com/", #PB_Web_Edge)
While GetGadgetAttribute(0, #PB_Web_Busy)<>0
WindowEvent()
Wend
Debug GetGadgetItemText(0, #PB_Web_PageTitle)
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf