Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply hide_from_bots also to WebDriver (Selenium) #91

Merged
merged 1 commit into from
Oct 19, 2021

Conversation

OndraM
Copy link
Contributor

@OndraM OndraM commented Oct 19, 2021

Enabling hide_from_bots will now not only hide the plugin from crawler bots, but also from WebDriver (Selenium).
The navigator.webdriver property is used for the detection.

This is useful when end to end tests using Selenium are used, and one don't want the plugin to be run on each page (thus triggering the banner, which would cover some portions of the tested webpage). Also WebDriver could itself be used as a tool for crawlers, so the semantics of the name of flag hide_from_bots is still appropriate.

@orestbida orestbida merged commit 47c968b into orestbida:master Oct 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants