Update readme
Browse files
    	
        readme.md
    CHANGED
    
    | @@ -230,6 +230,11 @@ driver.highlight(string|stepDefinition); | |
| 230 |  | 
| 231 | 
             
            // Resets the overlay and clears the screen
         | 
| 232 | 
             
            driver.reset();
         | 
|  | |
|  | |
|  | |
|  | |
|  | |
| 233 |  | 
| 234 | 
             
            // Checks if there is any highlighted element
         | 
| 235 | 
             
            if(driver.hasHighlightedElement()) {
         | 
|  | |
| 230 |  | 
| 231 | 
             
            // Resets the overlay and clears the screen
         | 
| 232 | 
             
            driver.reset();
         | 
| 233 | 
            +
            // Additionally you can pass a boolean parameter
         | 
| 234 | 
            +
            // to clear immediately and not do the animations etc
         | 
| 235 | 
            +
            // Could be useful when you, let's say, want to run
         | 
| 236 | 
            +
            // a different instance of driver while one was running
         | 
| 237 | 
            +
            driver.reset(clearImmediately = false);
         | 
| 238 |  | 
| 239 | 
             
            // Checks if there is any highlighted element
         | 
| 240 | 
             
            if(driver.hasHighlightedElement()) {
         |