This content has moved - please find it at https://devblog.cyotek.com.

Although these pages remain accessible, some content may not display correctly in future as the new blog evolves.

Visit https://devblog.cyotek.com.

Introducing WebView2 support, part 1

Note that WebCopy 1.10 and Sitemap Creator 1.3 onwards no longer supports Windows Vista, 8 and earlier versions of Windows 10.

Cyotek's documentation pages don't work in IE very well.

WebCopy 1.7 introduced website authentication using Internet Explorer. Even at the time I knew it was a stop-gap solution and long term the plan was to have WebCopy support both Gecko and Chromium engines for advanced support. Of course, in Cyotek-land plans never come to fruition.

In the interim period Microsoft introduced the new Chromium based Edge and then Edge WebView2. WebCopy users can now choose to use either Internet Explorer or a system installation of WebView2 for advanced GUI based tasks.

To clarify, you cannot (yet) use it to scan websites to work around WebCopy's inability to execute JavaScript whilst crawling. Its main use case is for manually authenticating with a website to allow WebCopy to borrow the cookies.

WebCopy now (partially!) supports WebView2

Although you almost certainly have an uninstallable version of Edge installed that doesn't necessarily mean you have WebView2 installed - see the Microsoft download page for installation details. Note that WebCopy currently doesn't support fixed versions, but only the evergreen system component.

Choosing an Embedded Browser Engine

The new options

The Options dialogue now includes a new Embedded Web Browser category which allows you to choose between IE and WebView2.

One of the interesting things about WebView2 is it doesn't share global state with the Edge browser itself. A new option has been provided allowing you to configure the location where the WebView2 profile is stored, along with an option to clean it up after each use (e.g. for deleting cookies and clearing cached files).

The dialogue will also check to see if WebView2 is installed before allowing it to be selected.

Warning if WebView2 isn't installed

Caveats

This should still be considered experimental functionality. And by using WebView2, Microsoft probably siphons off half your hard disk to their servers as per their egregious data collection practices.

What is also quite not-funny is one of the reasons users requested this functionality is to log into Google websites. But I understand that Google in their position of "Our Way Or The Highway" actively block embedded browsers such as WebView2 for being used for authentication. But ignoring that, at least it can be used for modern websites where IE now falters.

The default option remains as Internet Explorer given it is already present on users machines and WebView2 may not be.

Finally, although technically WebCopy can still be used on Windows Vista, WebView2 is only available on Windows 7, Windows 8.1, later versions of Windows 10 and any version of Windows 11 (and even then the Windows 7 and 8.1 versions are no longer supported).

What about using WebView2 to scan websites created using JavaScript?

The title of this post is part 1 - suggesting a part 2. And this is the part 2 to follow!

WebCopy is a relatively old piece of software - the first version was released June 15th, 2010. In addition, it deliberately used old versions of the .NET Framework to allow it to be used on older versions of Windows. These restrictions have gradually been removed, but the underlying code is still using old coding methods. So while modern code (like WebView2) uses the "async and await" patterns, WebCopy uses older constructs like AsyncOperationManager and IAsyncResult. A minimum of refactoring has been done to inject WebView2 for use in GUI dialogues like External Login and Capture Form, but changing the crawl engine to be able to make use of this is a bigger task. So for now, it can be used for manual authentication, and in a future update you will (should) be able use it to complement WebCopy's crawl engine if desired.

About The Author

Gravatar

The founder of Cyotek, Richard enjoys creating new blog content for the site. Much more though, he likes to develop programs, and can often found writing reams of code. A long term gamer, he has aspirations in one day creating an epic video game. Until that time, he is mostly content with adding new bugs to WebCopy and the other Cyotek products.

Leave a Comment

While we appreciate comments from our users, please follow our posting guidelines. Have you tried the Cyotek Forums for support from Cyotek and the community?

Styling with Markdown is supported