Git Product home page Git Product logo

page-objects-webdriver's Introduction

page-objects-webdriver's People

Contributors

michal-lipski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

page-objects-webdriver's Issues

Driver info: driver.version: unknown

I am trying to run the same example on linux ( Fedora 15) but getting error:

GitHubLoginTest (1)
com.example.test.GitHubLoginTest
should_not_login_with_wrong_credentials(com.example.test.GitHubLoginTest)
org.openqa.selenium.TimeoutException: Timed out after 30 seconds waiting for title to contain "GitHub � Social Coding". Current title: "GitHub · Social Coding"
Build info: version: '2.25.0', revision: '17482', time: '2012-07-18 21:09:54'
System info: os.name: 'Linux', os.arch: 'amd64', os.version: '2.6.43.5-2.fc15.x86_64', java.version: '1.6.0_35'
Driver info: driver.version: unknown
at org.openqa.selenium.support.ui.FluentWait.timeoutException(FluentWait.java:255)
at org.openqa.selenium.support.ui.FluentWait.timeoutException(FluentWait.java:270)
at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:222)
at com.example.pageobjects.GitHubPage.waitForPageToLoad(GitHubPage.java:40)
at com.example.pageobjects.GitHubPage.openPage(GitHubPage.java:30)
at com.example.pageobjects.GitHubHomePage.open(GitHubHomePage.java:31)
at com.example.test.GitHubLoginTest.should_not_login_with_wrong_credentials(GitHubLoginTest.java:33)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

static import declarations are not supported in -source 1.3

Sorry to create yet another issue, but when doing " mvn clean install" i get build failure. Here is the detail of error:

[INFO] [compiler:compile {execution: default-compile}]
[INFO] No sources to compile
[INFO] [resources:testResources {execution: default-testResources}]
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /home/kahmed/LIPSKI/page-objects-webdriver/src/test/resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Compiling 5 source files to /home/kahmed/LIPSKI/page-objects-webdriver/target/test-classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure

/home/kahmed/LIPSKI/page-objects-webdriver/src/test/java/com/example/test/GitHubLoginTest.java:[3,7] static import declarations are not supported in -source 1.3
(use -source 5 or higher to enable static import declarations)
import static com.example.setup.SeleniumDriver.getDriver;

/home/kahmed/LIPSKI/page-objects-webdriver/src/test/java/com/example/test/GitHubLoginTest.java:[13,2] annotations are not supported in -source 1.3
(use -source 5 or higher to enable annotations)
@afterclass

/home/kahmed/LIPSKI/page-objects-webdriver/src/test/java/com/example/pageobjects/GitHubPage.java:[3,7] static import declarations are not supported in -source 1.3
(use -source 5 or higher to enable static import declarations)
import static com.example.setup.SeleniumDriver.getDriver;

/home/kahmed/LIPSKI/page-objects-webdriver/src/test/java/com/example/pageobjects/GitHubPage.java:[12,32] generics are not supported in -source 1.3
(use -source 5 or higher to enable generics)
public abstract class GitHubPage {

/home/kahmed/LIPSKI/page-objects-webdriver/src/test/java/com/example/pageobjects/GitHubHomePage.java:[11,46] generics are not supported in -source 1.3
(use -source 5 or higher to enable generics)
public class GitHubHomePage extends GitHubPage {

/home/kahmed/LIPSKI/page-objects-webdriver/src/test/java/com/example/pageobjects/GitHubHomePage.java:[13,2] annotations are not supported in -source 1.3
(use -source 5 or higher to enable annotations)
@OverRide

/home/kahmed/LIPSKI/page-objects-webdriver/src/test/java/com/example/pageobjects/GitHubLoginPage.java:[11,47] generics are not supported in -source 1.3
(use -source 5 or higher to enable generics)
public class GitHubLoginPage extends GitHubPage {

/home/kahmed/LIPSKI/page-objects-webdriver/src/test/java/com/example/pageobjects/GitHubLoginPage.java:[13,2] annotations are not supported in -source 1.3
(use -source 5 or higher to enable annotations)
@findby(id = "login_field")

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11 seconds
[INFO] Finished at: Mon Sep 10 09:08:52 EDT 2012
[INFO] Final Memory: 15M/238M
[INFO] ------------------------------------------------------------------------
[kahmed@localhost page-objects-webdriver]$

wait.until(pageLoadCondition); error

I have compile error in eclipse
in the class GitHubPage

The type com.google.common.base.Function cannot be resolved. It is indirectly referenced from required .class
files

for the wait.until(pageLoadCondition);
statement

private void waitForPageToLoad(ExpectedCondition pageLoadCondition) {
Wait wait = new FluentWait(getDriver())
.withTimeout(LOAD_TIMEOUT, TimeUnit.SECONDS)
.pollingEvery(REFRESH_RATE, TimeUnit.SECONDS);

    wait.until(pageLoadCondition);
}

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.