local D=require("\046\046\047\115\114\099")local r=D.Browser.new({headless=false})local K=r:new_tab();(K:navigate_to("\104\116\116\112\115\058\047\047\119\119\119\046\103\111\111\103\108\101\046\099\111\109")):wait_until_navigated()K:add_event_listener(D.Event.PageLifecycleEvent,function(D)if D.name=="\068\079\077\067\111\110\116\101\110\116\076\111\097\100\101\100"then print(K:get_url())end end)
local chrome = require("../src")

local browser = chrome.Browser.new({ headless = false })
local tab = browser:new_tab()

tab:navigate_to("https://www.google.com"):wait_until_navigated()

tab:add_event_listener(chrome.Event.PageLifecycleEvent, function(lifecycle)
	if lifecycle.name == "DOMContentLoaded" then
		print(tab:get_url())
	end
end)
