question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to "clear history and website data" or start clear session

See original GitHub issue

Environment

  • Appium version (or git revision) that exhibits the issue: 1.6.3
  • Desktop OS/version used to run Appium: OS X Sierra
  • Node.js version (unless using Appium.app|exe): 7
  • Mobile platform/version under test: iOS
  • Real device or emulator/simulator: Real device (iPhone 6 iOS 10.2)
  • Appium CLI or Appium.app|exe: CLI

Details

How to “clear history and website data” or start clear session on iOS ?

Capabilities didn’t help desiredCapabilities.setCapability(MobileCapabilityType.NO_RESET, false);

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
mykola-mokhnachcommented, Feb 16, 2017

Ah, you are on real device. Then pass our kudos to Apple 😉 There is no known way to reset Safari browsing data using one simple command. Although, in theory you can try to:

  • Open a private tab and then work inside this tab
  • Clear browsing data by clicking the same buttons (using Appium), that “normal” user would click to clear the data.
  • Create a “magic” control on your site under test, which resets the local data and activate it every time you need to clear the stuff
1reaction
mykola-mokhnachcommented, Nov 28, 2017

There is no built-in possibility to do it directly. Just perform the same tap actions as a normal user would do in order to open it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Clear the history and cookies from Safari on your iPhone, iPad ...
Delete history, cache, and cookies ... To clear your history and cookies, go to Settings > Safari, and tap Clear History and Website...
Read more >
Clear browsing data - Android - Google Chrome Help
Tap More More and then Settings. ; Tap Privacy and security and then Clear browsing data. ; Choose a time range, like Last...
Read more >
Clear your web browser's cache, cookies, and history - IU KB
Open your Settings app. · Tap Safari. · Tap Clear History and Website Data and confirm. · Exit/quit all browser windows and re-open...
Read more >
How to clear your web history in any browser - Popular Science
On the emerging menu, scroll down to Privacy & Security and next to Browsing data click on Clear. This will open the browser's...
Read more >
Clear Web Browser Data (History, Cookies, and Cache)
Open Chrome. · Select the 3 vertical dots, on the top right corner (for "Customize and control Google Chrome"). · Select More Tools....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found