Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2d14905

Browse files
Update README.md
1 parent 2f3c48f commit 2d14905

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

‎README.md‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,14 @@
1212
```
1313
install maven
1414
```
15-
15+
### Clearing browser cache
16+
To clear browser cache, the following line of code can be used:
17+
18+
```java
19+
// Clearing browser Cache after Test
20+
driver.manage().deleteAllCookies(); // delete all cookies
21+
Thread.sleep(7000); // wait 7 seconds to clear cookies.
22+
```
1623
### Run your First Test
1724
1. Clone the Java-Selenium-Sample repository.
1825
```

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /