waitFor(10) { browser.$('div', class: 'LocationSearch__ResultCount-jsWbXv hXPPML').isDisplayed() }
while (!browser.$('div', class: 'LocationSearch__ResultCount-jsWbXv hXPPML').isDisplayed()) { System.out.println("waiting...") }
<properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<cluecumber-report-plugin.version>2.3.1</cluecumber-report-plugin.version> <exec-maven-plugin.version>1.6.0</exec-maven-plugin.version> <maven-clean-plugin.version>3.1.0</maven-clean-plugin.version> <maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version> <ocular.version>1.0.0.Alpha</ocular.version> <groovycsv.version>1.3</groovycsv.version> <ashot.version>1.5.4</ashot.version> <webdrivermanager.version>3.7.1</webdrivermanager.version> <com4j.version>2.1</com4j.version> <geb-core.version>3.2</geb-core.version> <http-builder.version>0.7.1</http-builder.version> <commons-io.version>2.6</commons-io.version> <selenium-api.version>3.141.59</selenium-api.version> <selenium-java.version>3.141.59</selenium-java.version> <slf4j-simple.version>1.7.28</slf4j-simple.version> <cucumber-jvm.version>4.8.0</cucumber-jvm.version> <cucumber-groovy.version>4.2.0</cucumber-groovy.version> <groovy-all.version>2.5.8</groovy-all.version></properties>
<dependencies>
<dependency> <groupId>io.cucumber</groupId> <artifactId>cucumber-groovy</artifactId> <version>${cucumber-groovy.version}</version> </dependency>
<dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy-all</artifactId> <version>${groovy-all.version}</version> <type>pom</type> </dependency>
<dependency> <groupId>io.cucumber</groupId> <artifactId>cucumber-jvm</artifactId> <version>${cucumber-jvm.version}</version> <type>pom</type> </dependency>
<dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> <version>${slf4j-simple.version}</version> </dependency>
<dependency> <groupId>io.github.bonigarcia</groupId> <artifactId>webdrivermanager</artifactId> <version>${webdrivermanager.version}</version> <scope>test</scope> </dependency>
<dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-java</artifactId> <version>${selenium-java.version}</version> </dependency>
<dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-api</artifactId> <version>${selenium-api.version}</version> </dependency>
<dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>${commons-io.version}</version> </dependency>
<dependency> <groupId>org.codehaus.groovy.modules.http-builder</groupId> <artifactId>http-builder</artifactId> <version>${http-builder.version}</version> </dependency>
<dependency> <groupId>org.gebish</groupId> <artifactId>geb-core</artifactId> <version>${geb-core.version}</version> </dependency>
<dependency> <groupId>org.jvnet.com4j</groupId> <artifactId>com4j</artifactId> <version>${com4j.version}</version> </dependency>
<dependency> <groupId>ru.yandex.qatools.ashot</groupId> <artifactId>ashot</artifactId> <version>${ashot.version}</version> </dependency>
<dependency> <groupId>com.xlson.groovycsv</groupId> <artifactId>groovycsv</artifactId> <version>${groovycsv.version}</version> </dependency>
<dependency> <groupId>com.testautomationguru.ocular</groupId> <artifactId>ocular</artifactId> <version>${ocular.version}</version> </dependency>
</dependencies>
<plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>${maven-surefire-plugin.version}</version> <configuration> <skipTests>true</skipTests> </configuration> </plugin>
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-clean-plugin</artifactId> <version>${maven-clean-plugin.version}</version> <configuration> <filesets> <fileset> <directory>reports</directory> </fileset> </filesets> </configuration> </plugin>
<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>${exec-maven-plugin.version}</version> <executions> <execution> <phase>test</phase> <goals> <goal>java</goal> </goals> <configuration> <classpathScope>test</classpathScope> <mainClass>cucumber.api.cli.Main</mainClass> <arguments> <argument>--plugin</argument> <argument>json:reports/junit.json</argument> <argument>--strict</argument> <argument>--glue</argument> <argument>target/test-classes</argument> <argument>target/test-classes/.</argument> <argument>--tags</argument> <argument>${tagArg}</argument> </arguments> </configuration> </execution> </executions> </plugin>
</plugins>
--
You received this message because you are subscribed to the Google Groups "Geb User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/8b3558dd-f6b4-4307-9d15-bb0cedd6fcd4%40googlegroups.com.
mvn clean test -Dgeb.env=chrome -DtagArg=@US01
To unsubscribe from this group and stop receiving emails from it, send an email to geb-...@googlegroups.com.
[erdi@mbp ~/Downloads/testsuite-sandbox]$ mvn clean test -Dgeb.env=chrome -DtagArg=@US01[INFO] Scanning for projects...[INFO][INFO] ---------------------< au.com.sandbox:sample-test >---------------------[INFO] Building sandbox-test 0.0.1[INFO] --------------------------------[ jar ]---------------------------------[INFO][INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ sample-test ---[INFO] Deleting /Users/erdi/Downloads/testsuite-sandbox/target[INFO] Deleting /Users/erdi/Downloads/testsuite-sandbox/reports (includes = [], excludes = [])[INFO][INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ sample-test ---[INFO] Using 'UTF-8' encoding to copy filtered resources.[INFO] skip non existing resourceDirectory /Users/erdi/Downloads/testsuite-sandbox/src/main/resources[INFO][INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ sample-test ---[INFO] No sources to compile[INFO][INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ sample-test ---[INFO] Using 'UTF-8' encoding to copy filtered resources.[INFO] Copying 4 resources[INFO][INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ sample-test ---[INFO] No sources to compile[INFO][INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ sample-test ---[INFO] Tests are skipped.[INFO][INFO] --- exec-maven-plugin:1.6.0:java (default) @ sample-test ---[io.cucumber.core.cli.Main.main()] INFO io.github.bonigarcia.wdm.WebDriverManager - Using chromedriver 78.0.3904.70 (since Google Chrome 78 is installed in your machine)[io.cucumber.core.cli.Main.main()] INFO io.github.bonigarcia.wdm.WebDriverManager - Exporting webdriver.chrome.driver as /Users/erdi/.m2/repository/webdriver/chromedriver/mac64/78.0.3904.70/chromedriver[CONFIG] >>> Chrome Driver Version: 78.0.3904.70Starting ChromeDriver 78.0.3904.70 (edb9c9f3de0247fd912a77b7f6cae7447f6d3ad5-refs/branch-heads/3904@{#800}) on port 46028Only local connections are allowed.Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.Nov 01, 2019 1:17:44 PM org.openqa.selenium.remote.ProtocolHandshake createSessionINFO: Detected dialect: W3CResults Found ==> About 1,090,000,000 results (0.87 seconds)1 Scenarios (1 passed)2 Steps (2 passed)0m7.920s
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/95a959bd-b54a-4d33-8445-6a30eede13db%40googlegroups.com.
groovy.lang.MissingMethodException: No signature of method: cucumber.runtime.groovy.GroovyWorld.contains() is applicable for argument types: (String) values: [q]
browser.$('input', name: contains('q')) << term + Keys.ENTER
browser.$('input', name: 'q') << term + Keys.ENTER
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/95a959bd-b54a-4d33-8445-6a30eede13db%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/14fca32f-3bd5-4909-ab12-b25161c2c6bf%40googlegroups.com.
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java (default) on project sample-test: An exception occured while executing the Java class. Failed to create Script instance for class: class features.support.BindingUpdaterSuppo
rtingTextMatchers. Reason: java.lang.reflect.InvocationTargetException: geb.binding.BindingUpdater: method <init>()V not found -> [Help 1]
bindingUpdater = new BindingUpdater(binding, browser)
bindingUpdater = new BindingUpdaterSupportingTextMatchers(binding, browser)
Did I miss a step or did something incorrectly? Seems like it's looking for a blank constructor for BindingUpdater but can't find it because it doesn't exist yet??
Have also attached the project showing the changes.
--
You received this message because you are subscribed to the Google Groups "Geb User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/c79b3597-c94c-4e0c-8351-be419484559e%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-...@googlegroups.com.