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

Does it work? #14

Open
Alex2357 opened this issue May 29, 2014 · 3 comments
Open

Does it work? #14

Alex2357 opened this issue May 29, 2014 · 3 comments

Comments

@Alex2357
Copy link

This simple thing always passes
using (IWebDriver driver = TestHelper.CreateDriver())
{
//var url = @"http://politecaptcha.apphb.com/Home/WithBypass";
//var url = @"http://politecaptcha.apphb.com/Home/WithFallback";
var url = @"http://politecaptcha.apphb.com/Home/WithoutFallback";
driver.Navigate().GoToUrl(url);
var email = driver.FindElement(By.Id("EmailAddress"));
email.SendKeys("[email protected]");

            var feedback = driver.FindElement(By.Id("Feedback"));
            feedback.SendKeys("Test feedback for [email protected]");

            var submit = driver.FindElement(By.CssSelector("input[type=submit]"));
            submit.Click();

        }
@analogrelay
Copy link

Does your Web Driver run JavaScript on the page? PoliteCaptcha is designed to only show a CAPTCHA if the browser is not running JavaScript. Most spam bots do not run JavaScript, so if you use a JavaScript-enabled user-agent, this is by-design.

@Alex2357
Copy link
Author

Yes, it runs javascript. It is Selenium WebDriver.
Nice to have trivial check for Selenium.

@dotnetprofessional
Copy link

If a SPAMer wanted to SPAM your site then using Selenium or similar would easily get around this solution. I cant see how this can be considered a real solution. Granted it stops many bots but if your a site of interest its not much work to spin up Selenium or similar.

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

No branches or pull requests

3 participants