Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!

Close

Overview

BrowserWatch is a powershell module that can auto refresh the browser whenver a file changes in a directory. It uses a FileSystemWatcher to check for changes in your working directory and WebDriver to control the Chrome browser

Usage

  1. Download: Clone or download the repo.

  2. Install: In a powershell window, run install.ps1. This will copy the module in your local profile and unpack the webdriver dependencies into it.

  3. Import: Run “Import-Module BrowserWatch” to load it to your current session.

  4. Start: In your working directory run “Start-BrowserWatch”. This will start watching for file changes in this directory and bring up Chrome.

  5. Make changes and watch the magic.

Recent activity

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.