Reset Browser

From UBot Studio
Jump to: navigation, search


This command is part of the Browser Command in Chrome 39. The command restarts the browser process.

This will clear cookies, user agents and any other settings in the browser.


Example

navigate("http://www.w3schools.com/js/js_cookies.asp","Wait")
wait(2)
click(<innertext="Create Cookie 1">,"Left Click","No")
click(<innertext="Create Cookie 2">,"Left Click","No")
wait(2)
alert($get all cookies)
reset browser
wait for browser event("Everything Loaded","")
alert($get all cookies)



The example above focuses on the creation and clearing of cookies as a result of resetting the browser. The example cookies on the webpage are set with the click of a button.

The browser is restarted. New cookies are set within the browser.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox