sebarmeli / selenium2-java-quickstart-archetype Goto Github PK
View Code? Open in Web Editor NEWMaven Archetype for getting started with Selenium 2 (Java)
License: Apache License 2.0
Maven Archetype for getting started with Selenium 2 (Java)
License: Apache License 2.0
Get some funky dependency issues if you don't update Opera version in the POM
From documentation it's unclear how build/run Tests.
Since this basic framework have possibility to pass variables value through command line and through different profiles in pom.xml it would be nice to have examples how to do that. To be more specific:
I tried this:
git clone git://github.com/sebarmeli/Selenium2-Java-QuickStart-Archetype.git cd Selenium2-Java-QuickStart-Archetype && mvn install mvn \ archetype:generate \ -DartifactId=my-app \ -DgroupId=com.mycompany.app \ -DarchetypeGroupId=com.sebarmeli \ -DarchetypeArtifactId=selenium2-java-quickstart-archetype \ -DarchetypeVersion=0.2 cd my-app && mvn -X -e compile
but I'm stuck here:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project my-app: Compilation failure: Compilation failure: [ERROR] /private/tmp/t/my-app/src/main/java/com/mycompany/app/webdriver/WebDriverFactory.java:[20,25] package com.selenium2.util does not exist [ERROR] /private/tmp/t/my-app/src/main/java/com/mycompany/app/webdriver/WebDriverFactory.java:[21,30] package com.selenium2.webdriver does not exist [ERROR] -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project my-app: Compilation failure at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
I'm not sure how to tell Maven where com.selenium2.util.Browser and com.selenium2.webdriver.AuthenticatedHtmlUnitDriver are. Nor do I know where to find them.
Does anything stand out as being immeidately obvious?
I was happy to find that someone else created a archetype/template for Selenium2, other than me, and I wanted to share my link so you could see how I did it. Mine isn't truly object oriented since I use a static driver object, but you might like how I used JUnit and Gradle instead of Maven and TestNG: https://github.com/djangofan/WebDriverTestingTemplate
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.