Giter VIP home page Giter VIP logo

Comments (4)

alexnederlof avatar alexnederlof commented on May 29, 2024

From frankgroeneveld on December 21, 2010 10:52:54
This is probably not Crawljax doing anything wrong but Selenium. You should probably create a simple test case with Selenium and report it to them.

from crawljax.

alexnederlof avatar alexnederlof commented on May 29, 2024

From [email protected] on December 21, 2010 13:01:33
I have tested it with the simple Selenium Test case with the selenium jars available in Crawljax 2.0 however there I didn't face that issue over there

I have used the following test case

import com.thoughtworks.selenium.SeleneseTestCase;
public class TestSelenium extends SeleneseTestCase {
public void setUp() throws Exception {
setUp("http://www.google.com/", "*iexplore");
}
public void testNew() throws Exception {
selenium.open("/");
selenium.waitForPageToLoad("30000");
selenium.type("q", "selenium rc");
selenium.click("btnG");
selenium.waitForPageToLoad("30000");
selenium.close();
selenium.stop();
}
}

from crawljax.

alexnederlof avatar alexnederlof commented on May 29, 2024

From [email protected] on December 21, 2010 14:02:27
I have also tested it separtely with WebDriver using the following program however I have not faced any issue over there

import org.openqa.selenium.By;
import org.openqa.selenium.RenderedWebElement;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.ie.InternetExplorerDriver;

public class TestWebDriver {

public static void main(String[] args) throws Exception {

    WebDriver driver = new InternetExplorerDriver();

    driver.get("http://www.google.com/webhp?complete=1&hl=en");

    WebElement query = driver.findElement(By.name("q"));
    query.sendKeys("Cheese");
    long end = System.currentTimeMillis() + 5000;
    while (System.currentTimeMillis() < end) {
        RenderedWebElement resultsDiv = (RenderedWebElement) driver
                .findElement(By.className("gac_m"));
        if (resultsDiv.isDisplayed()) {
            break;
        }
    }
    query.submit();
    driver.close();
}

}

from crawljax.

alexnederlof avatar alexnederlof commented on May 29, 2024

Outdated

from crawljax.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.