From 214a1caab57f6e93566372d97552f1831b981dc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B4nio=20=22acdc=22=20Jr?= Date: Fri, 2 Feb 2018 14:03:27 -0200 Subject: [PATCH 01/59] docs(readme): fix typo [skip ci] [ci skip] --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fa368efb..3d419023 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ seleniumQuery is a feature-rich *cross-driver* Java library that brings a **jQuery-like** interface for [Selenium WebDriver](http://docs.seleniumhq.org/projects/webdriver/). -It is designed to be a **thin** layer over Selenium. You can use seleniumQuery to manage the WebDriver for you, or you can use seleniumQuery on top of your favorire selenium framework just +It is designed to be a **thin** layer over Selenium. You can use seleniumQuery to manage the WebDriver for you, or you can use seleniumQuery on top of your favorite selenium framework just to make some cases simpler when needed. ### Example snippet: From fbe24693f775405f785adbe454bea45da3642314 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B4nio=20=22acdc=22=20Jr?= Date: Wed, 7 Feb 2018 10:51:31 -0200 Subject: [PATCH 02/59] build: update selenium to 3.9.0, htmlunit to 2.29.1, commons-text to 1.2 --- pom.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index b829a8c0..67399f6e 100644 --- a/pom.xml +++ b/pom.xml @@ -20,7 +20,7 @@ 4.0.0 io.github.seleniumquery seleniumquery - 0.18.0 + 0.19.0-SNAPSHOT seleniumQuery http://seleniumquery.github.io/ @@ -31,8 +31,8 @@ 1.8 UTF-8 - 3.8.1 - 2.27 + 3.9.0 + 2.29.1 @@ -45,7 +45,7 @@ org.apache.commons commons-text - 1.1 + 1.2 @@ -59,7 +59,7 @@ org.seleniumhq.selenium htmlunit-driver - 2.28.4 + ${htmlunit-driver.version} From d7ea42683eb5d18eba6042b0826380b24935665a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B4nio=20=22acdc=22=20Jr?= Date: Wed, 7 Feb 2018 10:57:44 -0200 Subject: [PATCH 03/59] docs(libs): add important libs for easy version check --- src/test/resources/important-libs.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/test/resources/important-libs.md diff --git a/src/test/resources/important-libs.md b/src/test/resources/important-libs.md new file mode 100644 index 00000000..f970bf26 --- /dev/null +++ b/src/test/resources/important-libs.md @@ -0,0 +1,10 @@ +# Important libraries + +Check: + + + VERSION IS HERE + +- http://central.maven.org/maven2/org/seleniumhq/selenium/htmlunit-driver/maven-metadata.xml +- http://central.maven.org/maven2/org/seleniumhq/selenium/selenium-java/maven-metadata.xml +- http://central.maven.org/maven2/io/github/bonigarcia/webdrivermanager/maven-metadata.xml From be286961691999512ca8099865dd653f4cd290dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B4nio=20=22acdc=22=20Jr?= Date: Wed, 7 Feb 2018 10:59:08 -0200 Subject: [PATCH 04/59] build: update webdrivermanager 2.1.0 --- pom.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 67399f6e..673eef31 100644 --- a/pom.xml +++ b/pom.xml @@ -33,6 +33,7 @@ 3.9.0 2.29.1 + 2.1.0 @@ -118,7 +119,7 @@ io.github.bonigarcia webdrivermanager - 2.0.1 + ${webdrivermanager.version} From 8732432964f30bfe68dc0ee1c1b907cf42835461 Mon Sep 17 00:00:00 2001 From: Antonio Jr Date: Thu, 8 Feb 2018 09:49:37 -0200 Subject: [PATCH 05/59] refactor(functions): remove unused import --- .../github/seleniumquery/internal/fluentfunctions/AndOrThen.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/io/github/seleniumquery/internal/fluentfunctions/AndOrThen.java b/src/main/java/io/github/seleniumquery/internal/fluentfunctions/AndOrThen.java index 5863cf39..4a23f8dc 100644 --- a/src/main/java/io/github/seleniumquery/internal/fluentfunctions/AndOrThen.java +++ b/src/main/java/io/github/seleniumquery/internal/fluentfunctions/AndOrThen.java @@ -19,7 +19,6 @@ import io.github.seleniumquery.SeleniumQueryFluentAndOrThen; import io.github.seleniumquery.SeleniumQueryFluentFunction; import io.github.seleniumquery.SeleniumQueryObject; -import io.github.seleniumquery.SeleniumQueryWaitUntil; /** * A builder class that allows to specify the next step after waiting for some condition: to wait for more From 73dc7a3f3a80dc5ccbc9458377a2f0a1201915b9 Mon Sep 17 00:00:00 2001 From: Antonio Jr Date: Thu, 8 Feb 2018 09:58:52 -0200 Subject: [PATCH 06/59] test(browser): change tests so they don't break when htmlunit agents change --- .../endtoend/browser/SeleniumQueryBrowserTest.java | 8 ++++++-- .../driver/builders/HtmlUnitDriverBuilderTest.java | 11 +++++++---- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/test/java/endtoend/browser/SeleniumQueryBrowserTest.java b/src/test/java/endtoend/browser/SeleniumQueryBrowserTest.java index eafa43ba..45a27457 100644 --- a/src/test/java/endtoend/browser/SeleniumQueryBrowserTest.java +++ b/src/test/java/endtoend/browser/SeleniumQueryBrowserTest.java @@ -16,10 +16,14 @@ package endtoend.browser; +import static org.hamcrest.Matchers.allOf; +import static org.hamcrest.Matchers.containsString; +import static org.hamcrest.Matchers.not; import static testinfrastructure.EndToEndTestUtils.classNameToTestFileUrl; import java.util.List; +import org.hamcrest.Matchers; import org.junit.Assert; import org.junit.Test; import org.openqa.selenium.By; @@ -49,8 +53,8 @@ public void multiple_browser_instances_should_work_OK() { BrowserAgentTestUtils.openBrowserAgentTestHelperUrl(firefox); // then - BrowserAgentTestUtils.assertBrowserAgent(chrome, HtmlUnitDriverBuilderTest.HTMLUNIT_CHROME_AGENT_STRING); - BrowserAgentTestUtils.assertBrowserAgent(firefox, HtmlUnitDriverBuilderTest.HTMLUNIT_FF_AGENT_STRING); + BrowserAgentTestUtils.assertBrowserAgent(chrome, allOf(containsString("Chrome"), not(containsString("Firefox")))); + BrowserAgentTestUtils.assertBrowserAgent(firefox, allOf(containsString("Firefox"), not(containsString("Chrome")))); } @Test diff --git a/src/test/java/endtoend/browser/driver/builders/HtmlUnitDriverBuilderTest.java b/src/test/java/endtoend/browser/driver/builders/HtmlUnitDriverBuilderTest.java index 599e7c8a..23ba7b42 100644 --- a/src/test/java/endtoend/browser/driver/builders/HtmlUnitDriverBuilderTest.java +++ b/src/test/java/endtoend/browser/driver/builders/HtmlUnitDriverBuilderTest.java @@ -19,8 +19,11 @@ import static endtoend.browser.util.JsOnOffTestUtils.assertJavaScriptIsOff; import static endtoend.browser.util.JsOnOffTestUtils.assertJavaScriptIsOn; import static io.github.seleniumquery.SeleniumQuery.$; +import static org.hamcrest.Matchers.allOf; +import static org.hamcrest.Matchers.containsString; import static org.openqa.selenium.remote.CapabilityType.SUPPORTS_JAVASCRIPT; +import org.hamcrest.Matcher; import org.junit.After; import org.junit.Test; import org.openqa.selenium.remote.DesiredCapabilities; @@ -31,8 +34,8 @@ public class HtmlUnitDriverBuilderTest { private static final String HTMLUNIT_IE_AGENT_STRING = "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko"; - public static final String HTMLUNIT_CHROME_AGENT_STRING = "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.89 Safari/537.36"; - public static final String HTMLUNIT_FF_AGENT_STRING = "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0"; + private static final String HTMLUNIT_FF_AGENT_STRING = "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0"; + private static final Matcher HTMLUNIT_CHROME_AGENT_MATCHER = allOf(containsString("Chrome"), containsString("Mozilla"), containsString("AppleWebKit"), containsString("Safari")); @After public void tearDown() { @@ -54,7 +57,7 @@ public void useHtmlUnit__should_emulate_CHROME_by_default() { // when $.driver().useHtmlUnit(); // then - BrowserAgentTestUtils.assertBrowserAgent(HTMLUNIT_CHROME_AGENT_STRING); + BrowserAgentTestUtils.assertBrowserAgent(HTMLUNIT_CHROME_AGENT_MATCHER); } @Test @@ -92,7 +95,7 @@ public void emulatingChrome__should_emulate_CHROME() { // when $.driver().useHtmlUnit().emulatingChrome(); // then - BrowserAgentTestUtils.assertBrowserAgent(HTMLUNIT_CHROME_AGENT_STRING); + BrowserAgentTestUtils.assertBrowserAgent(HTMLUNIT_CHROME_AGENT_MATCHER); } @Test From efe4cccc87429701bb92aa48da139609bd12bd6c Mon Sep 17 00:00:00 2001 From: Antonio Jr Date: Thu, 8 Feb 2018 09:59:19 -0200 Subject: [PATCH 07/59] fix(browser): remove usage of old BrowserManager class --- .../seleniumquery/browser/driver/DriverBuilder.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/main/java/io/github/seleniumquery/browser/driver/DriverBuilder.java b/src/main/java/io/github/seleniumquery/browser/driver/DriverBuilder.java index 8f4330b7..a798c4a9 100644 --- a/src/main/java/io/github/seleniumquery/browser/driver/DriverBuilder.java +++ b/src/main/java/io/github/seleniumquery/browser/driver/DriverBuilder.java @@ -22,7 +22,6 @@ import org.openqa.selenium.WebDriver; import org.openqa.selenium.remote.DesiredCapabilities; -import io.github.bonigarcia.wdm.BrowserManager; import io.github.bonigarcia.wdm.WebDriverManager; /** @@ -39,7 +38,7 @@ public abstract class DriverBuilder> { private boolean capabilitiesManuallySet = false; - private Consumer autoDriverDownloadConfigurer; + private Consumer autoDriverDownloadConfigurer; private boolean autoQuitAskedFor = false; @@ -91,9 +90,9 @@ protected boolean isCapabilitiesManuallySet() { protected void autoDownloadDriverIfAskedFor(Class driverClass) { if (this.autoDriverDownloadConfigurer != null) { - BrowserManager browserManager = WebDriverManager.getInstance(driverClass); - this.autoDriverDownloadConfigurer.accept(browserManager); - browserManager.setup(); + WebDriverManager webDriverManager = WebDriverManager.getInstance(driverClass); + this.autoDriverDownloadConfigurer.accept(webDriverManager); + webDriverManager.setup(); } } @@ -110,12 +109,12 @@ public T autoDriverDownload() { /** * Automatically downloads and configures the chromedriver.exe executable using * webdrivermanager. - * @param configurer A function that allows additional configuration of the {@link BrowserManager}. + * @param configurer A function that allows additional configuration of the {@link WebDriverManager}. * @return A self reference, allowing further configuration of the driver builder. * @since 0.18.0 */ @SuppressWarnings("unchecked") - public T autoDriverDownload(Consumer configurer) { + public T autoDriverDownload(Consumer configurer) { if (this.autoDriverDownloadConfigurer != null) { LOGGER.warn(".autoDriverDownload() has already been called. Overwriting previous calls."); } From fbe85aac3fac15b1410b38a6096bab61e63bed19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B4nio=20=22acdc=22=20Jr?= Date: Sat, 10 Feb 2018 11:30:08 -0200 Subject: [PATCH 08/59] docs(libs): move important libs to docs [runsauce] [run sauce] [run-sauce] --- {src/test/resources => doc}/important-libs.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {src/test/resources => doc}/important-libs.md (100%) diff --git a/src/test/resources/important-libs.md b/doc/important-libs.md similarity index 100% rename from src/test/resources/important-libs.md rename to doc/important-libs.md From c952ebef7d202c22cb321a7729bd56a6ef72f265 Mon Sep 17 00:00:00 2001 From: Antonio Jr Date: Sat, 10 Feb 2018 11:36:20 -0200 Subject: [PATCH 09/59] build: update selenium to 3.9.1 [run sauce] --- doc/{important-libs.md => IMPORTANT-LIBS.md} | 0 pom.xml | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename doc/{important-libs.md => IMPORTANT-LIBS.md} (100%) diff --git a/doc/important-libs.md b/doc/IMPORTANT-LIBS.md similarity index 100% rename from doc/important-libs.md rename to doc/IMPORTANT-LIBS.md diff --git a/pom.xml b/pom.xml index 673eef31..3943c204 100644 --- a/pom.xml +++ b/pom.xml @@ -1,5 +1,5 @@ com.codeborne phantomjsdriver - 1.4.3 + 1.4.4 org.seleniumhq.selenium @@ -112,7 +112,7 @@ org.unbescape unbescape - 1.1.5.RELEASE + 1.1.6.RELEASE From 030f93a7d42490d6be3a4692553778203e35b5f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B4nio=20=22acdc=22=20Jr?= Date: Sun, 29 Apr 2018 20:38:35 -0300 Subject: [PATCH 22/59] build(gradle): update dependencies --- build.gradle | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index b6c40b17..165e0e78 100644 --- a/build.gradle +++ b/build.gradle @@ -31,8 +31,8 @@ description = "seleniumQuery" ext { seleniumVersion = "3.11.0" - htmlUnitDriverVersion = '2.29.2' - webDriverManagerVersion = '2.1.0' + htmlUnitDriverVersion = '2.30.0' + webDriverManagerVersion = '2.2.1' } sourceCompatibility = 1.8 @@ -48,19 +48,19 @@ repositories { } dependencies { - compile('net.sourceforge.cssparser:cssparser:0.9.24') - compile('org.apache.commons:commons-text:1.2') + compile('net.sourceforge.cssparser:cssparser:0.9.25') + compile('org.apache.commons:commons-text:1.3') compile('org.apache.commons:commons-lang3:3.7') compile("org.seleniumhq.selenium:htmlunit-driver:${htmlUnitDriverVersion}") compile("org.seleniumhq.selenium:selenium-api:${seleniumVersion}") compile("org.seleniumhq.selenium:selenium-java:${seleniumVersion}") compile("org.seleniumhq.selenium:selenium-remote-driver:${seleniumVersion}") - compile("com.codeborne:phantomjsdriver:1.4.3") { + compile("com.codeborne:phantomjsdriver:1.4.4") { exclude(module: 'selenium-java') exclude(module: 'selenium-remote-driver') } compile('commons-logging:commons-logging:1.2') - compile('org.unbescape:unbescape:1.1.5.RELEASE') + compile('org.unbescape:unbescape:1.1.6.RELEASE') // used by driverbuilders in the .autoDriverDownload() methods compile("io.github.bonigarcia:webdrivermanager:${webDriverManagerVersion}") From 8e3eeb4c536bb9d7117aa101d623089871e8ddee Mon Sep 17 00:00:00 2001 From: Antonio Jr Date: Tue, 1 May 2018 14:44:16 -0300 Subject: [PATCH 23/59] test: update tests according to firefox newest behavior --- .../forms/val/ValFunction_ContentEditableTest.java | 4 +++- .../jquery/forms/val/ValFunction_IframeTest.java | 10 +++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/test/java/endtoend/functions/jquery/forms/val/ValFunction_ContentEditableTest.java b/src/test/java/endtoend/functions/jquery/forms/val/ValFunction_ContentEditableTest.java index bbe7ff50..96c26f06 100644 --- a/src/test/java/endtoend/functions/jquery/forms/val/ValFunction_ContentEditableTest.java +++ b/src/test/java/endtoend/functions/jquery/forms/val/ValFunction_ContentEditableTest.java @@ -140,8 +140,10 @@ private String addCharsDependingOnDriver(String resultingHtml) { WebDriver driver = $.driver().get(); if (isIEDriver(driver)) { return " " + resultingHtml; - } else if (isFirefoxDriver(driver) || isOperaDriver(driver)) { + } else if (isOperaDriver(driver)) { return resultingHtml + " "; + } else if (isFirefoxDriver(driver)) { + return resultingHtml + "
"; } return resultingHtml; } diff --git a/src/test/java/endtoend/functions/jquery/forms/val/ValFunction_IframeTest.java b/src/test/java/endtoend/functions/jquery/forms/val/ValFunction_IframeTest.java index bacb5623..6fabfcd8 100644 --- a/src/test/java/endtoend/functions/jquery/forms/val/ValFunction_IframeTest.java +++ b/src/test/java/endtoend/functions/jquery/forms/val/ValFunction_IframeTest.java @@ -63,9 +63,9 @@ private void verifyIframeTextRead(String expectedIframeText) { } /** - * IE simply dies when we try to FETCH an element from the iframe. If gives no stacktrace info. + * IE simply dies when we try to FETCH an element from the iframe. It gives no stacktrace info. * This had to be done for IE to work: $.driver().get().switchTo().frame(0); - * They suggested, but didnt have effect: WebElement editable = $.driver().get().switchTo().activeElement(); + * They suggested, but didn't have effect: WebElement editable = $.driver().get().switchTo().activeElement(); * Also suggested $.driver().get().switchTo().defaultContent(); before switching to frame. No use. * * @@ -73,7 +73,7 @@ private void verifyIframeTextRead(String expectedIframeText) { * Firefox reads correctly, but edition only works if click before typing (it is as if it doesn't properly focus the iframe body using sendkeys only). * Edge only types when clicking before (if not clicking, the value ends up empty) * Chrome works 100%. - * HtmlUnit reads, but doesnt type. + * HtmlUnit reads, but doesn't type. * PhantomJS same as Edge. */ @Test @@ -86,14 +86,14 @@ public void iframe_with_DesignMode_ON___values_are_CHANGED_correctly__CHROME() { @FirefoxOnly public void iframe_with_DesignMode_ON___values_are_CHANGED_correctly__FIREFOX__NOT_CLICKING() { // see comments above - verifyTypingAtIframeChangesValueAsExpected(is("iframe-body-content"), false); + verifyTypingAtIframeChangesValueAsExpected(is(""), false); } @Test @FirefoxOnly public void iframe_with_DesignMode_ON___values_are_CHANGED_correctly__FIREFOX__CLICKING() { // see comments above - verifyTypingAtIframeChangesValueAsExpected(is("iframe-body-content[typed-value]"), true); + verifyTypingAtIframeChangesValueAsExpected(is("[typed-value]"), true); } @Test From ee5b21ed0c8ec2a3f4f8fb21d518b4e9bf0c45ad Mon Sep 17 00:00:00 2001 From: Antonio Jr Date: Tue, 1 May 2018 19:03:59 -0300 Subject: [PATCH 24/59] docs: update javadocs version --- .../io/github/seleniumquery/browser/driver/DriverBuilder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/github/seleniumquery/browser/driver/DriverBuilder.java b/src/main/java/io/github/seleniumquery/browser/driver/DriverBuilder.java index 3c61103a..bc66b2f9 100644 --- a/src/main/java/io/github/seleniumquery/browser/driver/DriverBuilder.java +++ b/src/main/java/io/github/seleniumquery/browser/driver/DriverBuilder.java @@ -147,11 +147,11 @@ protected void autoQuitDriverIfAskedFor(WebDriver driver) { } /** - * Configures the driver with the given WebDriverEventListener. + * Configures the driver with the given {@link WebDriverEventListener}. * * @param webDriverEventListener The webDriverEventListener to be set. * @return A self reference for further configuration. - * @since 0.18.0 + * @since 0.19.0 */ @SuppressWarnings("unchecked") public T withWebDriverEventListener(WebDriverEventListener webDriverEventListener) { From 55bbb36287e6ba428896ed0e9112de2a7123f4b5 Mon Sep 17 00:00:00 2001 From: Antonio Jr Date: Tue, 1 May 2018 19:05:26 -0300 Subject: [PATCH 25/59] test(browser): add tests for .withWebDriverEventListener() --- .../driver/SeleniumQueryDriverTest.java | 22 +++++++++++++++++++ .../browser/util/BrowserAgentTestUtils.java | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/src/test/java/endtoend/browser/driver/SeleniumQueryDriverTest.java b/src/test/java/endtoend/browser/driver/SeleniumQueryDriverTest.java index f8eadc89..6c143df0 100644 --- a/src/test/java/endtoend/browser/driver/SeleniumQueryDriverTest.java +++ b/src/test/java/endtoend/browser/driver/SeleniumQueryDriverTest.java @@ -16,9 +16,13 @@ package endtoend.browser.driver; +import org.junit.Assert; import org.junit.Test; import org.openqa.selenium.WebDriver; import org.openqa.selenium.htmlunit.HtmlUnitDriver; +import org.openqa.selenium.support.events.AbstractWebDriverEventListener; + +import endtoend.browser.util.BrowserAgentTestUtils; import testinfrastructure.testdouble.org.openqa.selenium.WebDriverQuitSpy; import static io.github.seleniumquery.SeleniumQuery.$; @@ -27,6 +31,8 @@ import static org.junit.Assert.assertThat; import static testinfrastructure.testdouble.org.openqa.selenium.WebDriverQuitSpy.createWebDriverQuitSpy; +import java.util.concurrent.atomic.AtomicReference; + public class SeleniumQueryDriverTest { @Test @@ -104,4 +110,20 @@ public void useHtmlUnit__should_quit_the_previous_driver() { previousDriver.assertDriverWasQuit(); } + @Test + public void withWebDriverEventListener() { + // given + AtomicReference openedUrl = new AtomicReference<>(null); + $.driver().useHtmlUnit().withWebDriverEventListener(new AbstractWebDriverEventListener() { + @Override + public void beforeNavigateTo(String url, WebDriver driver) { + openedUrl.set(url); + } + }); + // when + $.url(BrowserAgentTestUtils.AGENT_TEST_URL); + // then + Assert.assertEquals(BrowserAgentTestUtils.AGENT_TEST_URL, openedUrl.get()); + } + } diff --git a/src/test/java/endtoend/browser/util/BrowserAgentTestUtils.java b/src/test/java/endtoend/browser/util/BrowserAgentTestUtils.java index 521e22ea..daef9b74 100644 --- a/src/test/java/endtoend/browser/util/BrowserAgentTestUtils.java +++ b/src/test/java/endtoend/browser/util/BrowserAgentTestUtils.java @@ -27,7 +27,7 @@ public class BrowserAgentTestUtils { - private static final String AGENT_TEST_URL = classNameToTestFileUrl(BrowserAgentTestUtils.class); + public static final String AGENT_TEST_URL = classNameToTestFileUrl(BrowserAgentTestUtils.class); public static void assertBrowserAgent(String agentString) { openBrowserAgentTestHelperUrl(); From 4415665c3d2a02f2e8706d96b4974baae814bd44 Mon Sep 17 00:00:00 2001 From: Antonio Jr Date: Tue, 1 May 2018 19:09:13 -0300 Subject: [PATCH 26/59] test: update more tests according to firefox newest behavior --- .../forms/val/ValFunction_ContentEditableTest.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/test/java/endtoend/functions/jquery/forms/val/ValFunction_ContentEditableTest.java b/src/test/java/endtoend/functions/jquery/forms/val/ValFunction_ContentEditableTest.java index 96c26f06..30659c1a 100644 --- a/src/test/java/endtoend/functions/jquery/forms/val/ValFunction_ContentEditableTest.java +++ b/src/test/java/endtoend/functions/jquery/forms/val/ValFunction_ContentEditableTest.java @@ -58,6 +58,7 @@ public void val_read__divWithoutContentEditableAttribute___readsEmptyString() { @Test @ChromeShouldBeSkipped("chrome can't focus, see test below") + @FirefoxSkip("firefox can't focus either, see also text below") @JavaScriptEnabledOnly @EdgeSkip("NoSuchWindowException -- TODO add tests for positive case") public void val_write__divWithoutContentEditableAttribute___hasNoEffect() { @@ -66,9 +67,12 @@ public void val_write__divWithoutContentEditableAttribute___hasNoEffect() { @Test @FirefoxOnly - @JavaScriptDisabledOnly - public void val_write__divWithoutContentEditableAttribute___hasNoEffect__Firefox_JS_OFF() { - verifyAttemptToChangeValOfDivWithoutContentEditableHasNoEffect(); + public void val_write__divWithoutContentEditableAttribute___throws_exception__FIREFOX() { + try { + verifyAttemptToChangeValOfDivWithoutContentEditableHasNoEffect(); + } catch (org.openqa.selenium.WebDriverException e) { + assertThat(e.getMessage(), startsWith(" Element
is not reachable by keyboard")); + } } @Test @@ -136,6 +140,7 @@ private void verifyEditableDivAcceptsHtmlCharsCorrectly(String editableDivId, St assertThat($(editableDivId).html(), is(addCharsDependingOnDriver("TYPED <a>& STUFF"))); } + @SuppressWarnings("SameParameterValue") private String addCharsDependingOnDriver(String resultingHtml) { WebDriver driver = $.driver().get(); if (isIEDriver(driver)) { From 4969b08a3a766062b181250f4b72cd05dda6935f Mon Sep 17 00:00:00 2001 From: Antonio Jr Date: Tue, 1 May 2018 19:21:33 -0300 Subject: [PATCH 27/59] fix: IE should use IE's capabilities --- .../browser/driver/builders/InternetExplorerDriverBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/github/seleniumquery/browser/driver/builders/InternetExplorerDriverBuilder.java b/src/main/java/io/github/seleniumquery/browser/driver/builders/InternetExplorerDriverBuilder.java index de3a792c..c02f5ee3 100644 --- a/src/main/java/io/github/seleniumquery/browser/driver/builders/InternetExplorerDriverBuilder.java +++ b/src/main/java/io/github/seleniumquery/browser/driver/builders/InternetExplorerDriverBuilder.java @@ -79,7 +79,7 @@ protected WebDriver build() { } private WebDriver buildIE() { - DesiredCapabilities capabilities = capabilities(DesiredCapabilities.chrome()); + DesiredCapabilities capabilities = capabilities(DesiredCapabilities.internetExplorer()); configureIEServerExecutablePath(); try { From 2bf844a5004acad1bf2d376a90ef5e6a08f6b065 Mon Sep 17 00:00:00 2001 From: Antonio Jr Date: Tue, 1 May 2018 21:32:59 -0300 Subject: [PATCH 28/59] test(functions): remove initial space --- .../jquery/forms/val/ValFunction_ContentEditableTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/endtoend/functions/jquery/forms/val/ValFunction_ContentEditableTest.java b/src/test/java/endtoend/functions/jquery/forms/val/ValFunction_ContentEditableTest.java index 30659c1a..a1d65900 100644 --- a/src/test/java/endtoend/functions/jquery/forms/val/ValFunction_ContentEditableTest.java +++ b/src/test/java/endtoend/functions/jquery/forms/val/ValFunction_ContentEditableTest.java @@ -71,7 +71,7 @@ public void val_write__divWithoutContentEditableAttribute___throws_exception__FI try { verifyAttemptToChangeValOfDivWithoutContentEditableHasNoEffect(); } catch (org.openqa.selenium.WebDriverException e) { - assertThat(e.getMessage(), startsWith(" Element
is not reachable by keyboard")); + assertThat(e.getMessage(), startsWith("Element
is not reachable by keyboard")); } } From 0cc04335843e7d0c467fcebe16025b3a0c3fb099 Mon Sep 17 00:00:00 2001 From: Antonio Jr Date: Wed, 2 May 2018 13:47:57 -0300 Subject: [PATCH 29/59] config(release): set version to 0.19.0 --- build.gradle | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 165e0e78..af70caba 100644 --- a/build.gradle +++ b/build.gradle @@ -25,7 +25,7 @@ idea { } group = 'io.github.seleniumquery' -version = '0.18.0' +version = '0.19.0' description = "seleniumQuery" diff --git a/pom.xml b/pom.xml index d4cdb981..a0f6e528 100644 --- a/pom.xml +++ b/pom.xml @@ -20,7 +20,7 @@ 4.0.0 io.github.seleniumquery seleniumquery - 0.19.0-SNAPSHOT + 0.19.0 seleniumQuery http://seleniumquery.github.io/ From 177f600fb51748b33f8d6862980b411b002749ef Mon Sep 17 00:00:00 2001 From: Antonio Jr Date: Wed, 2 May 2018 22:41:42 -0300 Subject: [PATCH 30/59] docs(readme): update to 0.19.0 --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2b088285..9e49aada 100644 --- a/README.md +++ b/README.md @@ -133,7 +133,7 @@ To get the latest version of seleniumQuery, add to your **`pom.xml`**: io.github.seleniumquery seleniumquery - 0.18.0 + 0.19.0 ``` @@ -1053,7 +1053,7 @@ $.driver().useInternetExplorer().withPathToIEDriverServerExe("C:\\IEDriverServer ### Available `$("selector").functions()` -Check the [javadocs for our `$().functions`](https://static.javadoc.io/io.github.seleniumquery/seleniumquery/0.18.0/index.html?io/github/seleniumquery/SeleniumQueryObject.html). +Check the [javadocs for our `$().functions`](https://static.javadoc.io/io.github.seleniumquery/seleniumquery/0.19.0/index.html?io/github/seleniumquery/SeleniumQueryObject.html). More info also in our [API wiki page](https://github.com/seleniumQuery/seleniumQuery/wiki/seleniumQuery-API). @@ -1061,7 +1061,7 @@ More info also in our [API wiki page](https://github.com/seleniumQuery/seleniumQ ### Available `$.functions()` -Check the [javadocs for our `$.functions`](https://static.javadoc.io/io.github.seleniumquery/seleniumquery/0.18.0/index.html?io/github/seleniumquery/browser/BrowserFunctions.html). +Check the [javadocs for our `$.functions`](https://static.javadoc.io/io.github.seleniumquery/seleniumquery/0.19.0/index.html?io/github/seleniumquery/browser/BrowserFunctions.html). Read about our global functions in the [API wiki page](https://github.com/seleniumQuery/seleniumQuery/wiki/seleniumQuery-API). From 9bdf425711802526673420dcdd3d9d61d1e7e772 Mon Sep 17 00:00:00 2001 From: Bertold Kolics Date: Wed, 19 Sep 2018 16:20:37 -0500 Subject: [PATCH 31/59] updated selenium-java and htmlunit dependencies --- README.md | 6 +++--- build.gradle | 4 ++-- pom.xml | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 9e49aada..61ade99a 100644 --- a/README.md +++ b/README.md @@ -133,7 +133,7 @@ To get the latest version of seleniumQuery, add to your **`pom.xml`**: io.github.seleniumquery seleniumquery - 0.19.0 + 0.19.1 ``` @@ -1053,7 +1053,7 @@ $.driver().useInternetExplorer().withPathToIEDriverServerExe("C:\\IEDriverServer ### Available `$("selector").functions()` -Check the [javadocs for our `$().functions`](https://static.javadoc.io/io.github.seleniumquery/seleniumquery/0.19.0/index.html?io/github/seleniumquery/SeleniumQueryObject.html). +Check the [javadocs for our `$().functions`](https://static.javadoc.io/io.github.seleniumquery/seleniumquery/0.19.1/index.html?io/github/seleniumquery/SeleniumQueryObject.html). More info also in our [API wiki page](https://github.com/seleniumQuery/seleniumQuery/wiki/seleniumQuery-API). @@ -1061,7 +1061,7 @@ More info also in our [API wiki page](https://github.com/seleniumQuery/seleniumQ ### Available `$.functions()` -Check the [javadocs for our `$.functions`](https://static.javadoc.io/io.github.seleniumquery/seleniumquery/0.19.0/index.html?io/github/seleniumquery/browser/BrowserFunctions.html). +Check the [javadocs for our `$.functions`](https://static.javadoc.io/io.github.seleniumquery/seleniumquery/0.19.1/index.html?io/github/seleniumquery/browser/BrowserFunctions.html). Read about our global functions in the [API wiki page](https://github.com/seleniumQuery/seleniumQuery/wiki/seleniumQuery-API). diff --git a/build.gradle b/build.gradle index af70caba..b1a949eb 100644 --- a/build.gradle +++ b/build.gradle @@ -30,9 +30,9 @@ version = '0.19.0' description = "seleniumQuery" ext { - seleniumVersion = "3.11.0" + seleniumVersion = "3.14.0" htmlUnitDriverVersion = '2.30.0' - webDriverManagerVersion = '2.2.1' + webDriverManagerVersion = '2.2.5' } sourceCompatibility = 1.8 diff --git a/pom.xml b/pom.xml index a0f6e528..5c51366c 100644 --- a/pom.xml +++ b/pom.xml @@ -20,7 +20,7 @@ 4.0.0 io.github.seleniumquery seleniumquery - 0.19.0 + 0.19.1 seleniumQuery http://seleniumquery.github.io/ @@ -31,9 +31,9 @@ 1.8 UTF-8 - 3.11.0 + 3.14.0 2.30.0 - 2.2.1 + 2.2.5 From a286c48b9c0cc32e9bf75271acf0345c60ce7c07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B4nio=20=22acdc=22=20Jr?= Date: Wed, 19 Sep 2018 21:41:35 -0300 Subject: [PATCH 32/59] config(maven): update htmtlunit version --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 5c51366c..53186779 100644 --- a/pom.xml +++ b/pom.xml @@ -32,7 +32,7 @@ UTF-8 3.14.0 - 2.30.0 + 2.32.1 2.2.5 From 944179212071fecc14215b6716b882cd8e74d457 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B4nio=20=22acdc=22=20Jr?= Date: Wed, 19 Sep 2018 21:42:00 -0300 Subject: [PATCH 33/59] config(gradle): update htmlunit version --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index b1a949eb..ab2d4e3a 100644 --- a/build.gradle +++ b/build.gradle @@ -31,7 +31,7 @@ description = "seleniumQuery" ext { seleniumVersion = "3.14.0" - htmlUnitDriverVersion = '2.30.0' + htmlUnitDriverVersion = '2.32.1' webDriverManagerVersion = '2.2.5' } From 8ab56ed2607cdad96db11311efc7d8e0be5e7abc Mon Sep 17 00:00:00 2001 From: Antonio Jr Date: Fri, 21 Sep 2018 20:45:40 -0300 Subject: [PATCH 34/59] feat(utils): WrapsDriver has changed package --- src/main/java/io/github/seleniumquery/utils/SelectorUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/github/seleniumquery/utils/SelectorUtils.java b/src/main/java/io/github/seleniumquery/utils/SelectorUtils.java index e982a673..68463b15 100644 --- a/src/main/java/io/github/seleniumquery/utils/SelectorUtils.java +++ b/src/main/java/io/github/seleniumquery/utils/SelectorUtils.java @@ -33,7 +33,7 @@ import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.htmlunit.HtmlUnitWebElement; -import org.openqa.selenium.internal.WrapsDriver; +import org.openqa.selenium.WrapsDriver; import com.gargoylesoftware.htmlunit.html.HtmlElement; import com.gargoylesoftware.htmlunit.html.HtmlHiddenInput; From 75cf0190747fa307af66e6390abeab2622b25ead Mon Sep 17 00:00:00 2001 From: Antonio Jr Date: Fri, 21 Sep 2018 21:31:18 -0300 Subject: [PATCH 35/59] test(by): update htmlunit constants --- .../io/github/seleniumquery/by/DriverVersionUtilsTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/integration/io/github/seleniumquery/by/DriverVersionUtilsTest.java b/src/test/java/integration/io/github/seleniumquery/by/DriverVersionUtilsTest.java index 2f9143d9..6aeb443a 100644 --- a/src/test/java/integration/io/github/seleniumquery/by/DriverVersionUtilsTest.java +++ b/src/test/java/integration/io/github/seleniumquery/by/DriverVersionUtilsTest.java @@ -54,7 +54,7 @@ private void assertDriverIsNotHtmlUnitDriverEmulatingIE(HtmlUnitDriver htmlUnitD @Test public void isHtmlUnitDriverEmulatingIE__firefox_non_deprecated_versions() { - assertDriverIsNotHtmlUnitDriverEmulatingIE(new HtmlUnitDriver(BrowserVersion.FIREFOX_45)); + assertDriverIsNotHtmlUnitDriverEmulatingIE(new HtmlUnitDriver(BrowserVersion.FIREFOX_52)); } @Test From 5af1506f7b3c93b5bdae93317e54c6d3a43c39df Mon Sep 17 00:00:00 2001 From: Antonio Jr Date: Fri, 21 Sep 2018 21:54:46 -0300 Subject: [PATCH 36/59] test(by): update htmlunit agent --- .../browser/driver/builders/HtmlUnitDriverBuilderTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/endtoend/browser/driver/builders/HtmlUnitDriverBuilderTest.java b/src/test/java/endtoend/browser/driver/builders/HtmlUnitDriverBuilderTest.java index 23ba7b42..72eba53c 100644 --- a/src/test/java/endtoend/browser/driver/builders/HtmlUnitDriverBuilderTest.java +++ b/src/test/java/endtoend/browser/driver/builders/HtmlUnitDriverBuilderTest.java @@ -34,7 +34,7 @@ public class HtmlUnitDriverBuilderTest { private static final String HTMLUNIT_IE_AGENT_STRING = "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko"; - private static final String HTMLUNIT_FF_AGENT_STRING = "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0"; + private static final String HTMLUNIT_FF_AGENT_STRING = "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"; private static final Matcher HTMLUNIT_CHROME_AGENT_MATCHER = allOf(containsString("Chrome"), containsString("Mozilla"), containsString("AppleWebKit"), containsString("Safari")); @After @@ -81,7 +81,7 @@ public void withJavaScript__should_set_js_ON_overriding_given_capabilities() { } @Test - public void emulatingFirefox__should_emulate_latest_firefox__that_is__FIREFOX_45() { + public void emulatingFirefox__should_emulate_latest_firefox() { // given // when $.driver().useHtmlUnit().emulatingFirefox(); From 90a524ffbad9aed62e87d6ed70cebe67769f6b50 Mon Sep 17 00:00:00 2001 From: Antonio Jr Date: Tue, 11 Dec 2018 21:00:52 -0200 Subject: [PATCH 37/59] config(maven/gradle): update htmtlunit version --- build.gradle | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index ab2d4e3a..73bc1ac4 100644 --- a/build.gradle +++ b/build.gradle @@ -31,7 +31,7 @@ description = "seleniumQuery" ext { seleniumVersion = "3.14.0" - htmlUnitDriverVersion = '2.32.1' + htmlUnitDriverVersion = '2.33.3' webDriverManagerVersion = '2.2.5' } diff --git a/pom.xml b/pom.xml index 53186779..d3b2b893 100644 --- a/pom.xml +++ b/pom.xml @@ -32,7 +32,7 @@ UTF-8 3.14.0 - 2.32.1 + 2.33.3 2.2.5 From 56abd6744ab86086c71decadf7f05683b3238b44 Mon Sep 17 00:00:00 2001 From: Antonio Jr Date: Wed, 12 Dec 2018 15:01:36 -0200 Subject: [PATCH 38/59] config(maven/gradle): update selenium-java version + refactor deprecated packages --- build.gradle | 2 +- pom.xml | 2 +- .../functions/jquery/events/DoubleClickFunctionTest.java | 4 ++-- .../testdouble/org/openqa/selenium/WebElementDummy.java | 4 ++-- .../org/openqa/selenium/interactions/MouseDummy.java | 2 +- .../selenium/interactions/internal/CoordinatesDummy.java | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/build.gradle b/build.gradle index 73bc1ac4..461ad990 100644 --- a/build.gradle +++ b/build.gradle @@ -30,7 +30,7 @@ version = '0.19.0' description = "seleniumQuery" ext { - seleniumVersion = "3.14.0" + seleniumVersion = '3.141.59' htmlUnitDriverVersion = '2.33.3' webDriverManagerVersion = '2.2.5' } diff --git a/pom.xml b/pom.xml index d3b2b893..c6e7d04d 100644 --- a/pom.xml +++ b/pom.xml @@ -31,7 +31,7 @@ 1.8 UTF-8 - 3.14.0 + 3.141.59 2.33.3 2.2.5 diff --git a/src/test/java/io/github/seleniumquery/functions/jquery/events/DoubleClickFunctionTest.java b/src/test/java/io/github/seleniumquery/functions/jquery/events/DoubleClickFunctionTest.java index 1ec214b4..88ae3c12 100644 --- a/src/test/java/io/github/seleniumquery/functions/jquery/events/DoubleClickFunctionTest.java +++ b/src/test/java/io/github/seleniumquery/functions/jquery/events/DoubleClickFunctionTest.java @@ -27,7 +27,7 @@ import org.openqa.selenium.WebElement; import org.openqa.selenium.interactions.Keyboard; import org.openqa.selenium.interactions.Mouse; -import org.openqa.selenium.interactions.internal.Coordinates; +import org.openqa.selenium.interactions.Coordinates; import testinfrastructure.testdouble.org.apache.commons.logging.LogInjector; import testinfrastructure.testdouble.org.apache.commons.logging.LogSpy; import testinfrastructure.testdouble.org.openqa.selenium.WebDriverDummy; @@ -149,4 +149,4 @@ static class ThrowElementHiddenExceptionCoordinates extends CoordinatesSpy { throw new ElementNotVisibleException("simulating a hidden element"); } } -} \ No newline at end of file +} diff --git a/src/test/java/testinfrastructure/testdouble/org/openqa/selenium/WebElementDummy.java b/src/test/java/testinfrastructure/testdouble/org/openqa/selenium/WebElementDummy.java index dfca1853..311a8ebe 100644 --- a/src/test/java/testinfrastructure/testdouble/org/openqa/selenium/WebElementDummy.java +++ b/src/test/java/testinfrastructure/testdouble/org/openqa/selenium/WebElementDummy.java @@ -17,8 +17,8 @@ package testinfrastructure.testdouble.org.openqa.selenium; import org.openqa.selenium.*; -import org.openqa.selenium.interactions.internal.Coordinates; -import org.openqa.selenium.internal.Locatable; +import org.openqa.selenium.interactions.Coordinates; +import org.openqa.selenium.interactions.Locatable; import testinfrastructure.testdouble.PseudoTestDoubleException; import java.util.List; diff --git a/src/test/java/testinfrastructure/testdouble/org/openqa/selenium/interactions/MouseDummy.java b/src/test/java/testinfrastructure/testdouble/org/openqa/selenium/interactions/MouseDummy.java index c3fb6450..df1e0ad9 100644 --- a/src/test/java/testinfrastructure/testdouble/org/openqa/selenium/interactions/MouseDummy.java +++ b/src/test/java/testinfrastructure/testdouble/org/openqa/selenium/interactions/MouseDummy.java @@ -17,7 +17,7 @@ package testinfrastructure.testdouble.org.openqa.selenium.interactions; import org.openqa.selenium.interactions.Mouse; -import org.openqa.selenium.interactions.internal.Coordinates; +import org.openqa.selenium.interactions.Coordinates; import testinfrastructure.testdouble.PseudoTestDoubleException; public class MouseDummy implements Mouse { diff --git a/src/test/java/testinfrastructure/testdouble/org/openqa/selenium/interactions/internal/CoordinatesDummy.java b/src/test/java/testinfrastructure/testdouble/org/openqa/selenium/interactions/internal/CoordinatesDummy.java index ee62b1ea..e13928d3 100644 --- a/src/test/java/testinfrastructure/testdouble/org/openqa/selenium/interactions/internal/CoordinatesDummy.java +++ b/src/test/java/testinfrastructure/testdouble/org/openqa/selenium/interactions/internal/CoordinatesDummy.java @@ -17,7 +17,7 @@ package testinfrastructure.testdouble.org.openqa.selenium.interactions.internal; import org.openqa.selenium.Point; -import org.openqa.selenium.interactions.internal.Coordinates; +import org.openqa.selenium.interactions.Coordinates; import testinfrastructure.testdouble.PseudoTestDoubleException; public class CoordinatesDummy implements Coordinates { From c54c287c9a26f81d8a15efbf1413565cf6722403 Mon Sep 17 00:00:00 2001 From: Antonio Jr Date: Wed, 12 Dec 2018 21:23:32 -0200 Subject: [PATCH 39/59] docs(readme): not just yet [run sauce] --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 61ade99a..6677d230 100644 --- a/README.md +++ b/README.md @@ -133,7 +133,7 @@ To get the latest version of seleniumQuery, add to your **`pom.xml`**: io.github.seleniumquery seleniumquery - 0.19.1 + 0.19.0 ``` From 4d58de04cc38d0d7b06be1c44bd7cd8a346876d4 Mon Sep 17 00:00:00 2001 From: Antonio Jr Date: Thu, 13 Dec 2018 12:54:29 -0200 Subject: [PATCH 40/59] ci(travis): temporarily hardcode url [run sauce] --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d2f6617a..3f78ac32 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,8 @@ jdk: before_install: # codacy - https://github.com/codacy/codacy-coverage-reporter#setup - sudo apt-get install jq - - wget -O ~/codacy-coverage-reporter-assembly-latest.jar $(curl https://api.github.com/repos/codacy/codacy-coverage-reporter/releases/latest | jq -r .assets[0].browser_download_url) +# - wget -O ~/codacy-coverage-reporter-assembly-latest.jar $(curl https://api.github.com/repos/codacy/codacy-coverage-reporter/releases/latest | jq -r .assets[0].browser_download_url) + - wget -O ~/codacy-coverage-reporter-assembly-latest.jar https://github.com/codacy/codacy-coverage-reporter/releases/download/4.0.5/codacy-coverage-reporter-4.0.5-assembly.jar script: mvn test -B From f65f570d45776ad0ae8261eb6dcbf5dd3e9c6342 Mon Sep 17 00:00:00 2001 From: Antonio Jr Date: Thu, 13 Dec 2018 21:25:44 -0200 Subject: [PATCH 41/59] test(e2e): add banner to debug commit message [run sauce] --- .../testutils/EnvironmentTestUtils.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/test/java/testinfrastructure/testutils/EnvironmentTestUtils.java b/src/test/java/testinfrastructure/testutils/EnvironmentTestUtils.java index bbe4f533..ab9e2d2d 100644 --- a/src/test/java/testinfrastructure/testutils/EnvironmentTestUtils.java +++ b/src/test/java/testinfrastructure/testutils/EnvironmentTestUtils.java @@ -69,7 +69,17 @@ private static String getGitLastCommitMessageIfAvailable() { } public static boolean gitLastCommitMessageContains(String expected) { - return getGitLastCommitMessageIfAvailable().contains(expected); + String gitLastCommitMessageIfAvailable = getGitLastCommitMessageIfAvailable(); + banner(gitLastCommitMessageIfAvailable); + return gitLastCommitMessageIfAvailable.contains(expected); + } + + private static void banner(String gitLastCommitMessageIfAvailable) { + System.out.println("###############################################################################################"); + System.out.println("###############################################################################################"); + System.out.println("### gitLastCommitMessageIfAvailable: " + gitLastCommitMessageIfAvailable); + System.out.println("###############################################################################################"); + System.out.println("###############################################################################################"); } } From 3f4c73ef333374af618ccc6bad85c8a73820f905 Mon Sep 17 00:00:00 2001 From: Antonio Jr Date: Fri, 14 Dec 2018 22:26:44 -0200 Subject: [PATCH 42/59] config(maven): update several deps --- pom.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index c6e7d04d..37f67609 100644 --- a/pom.xml +++ b/pom.xml @@ -20,7 +20,7 @@ 4.0.0 io.github.seleniumquery seleniumquery - 0.19.1 + 0.20.0 seleniumQuery http://seleniumquery.github.io/ @@ -40,19 +40,19 @@ net.sourceforge.cssparser cssparser - 0.9.25 + 0.9.26 org.apache.commons commons-text - 1.3 + 1.6 org.apache.commons commons-lang3 - 3.7 + 3.8.1 + [![Run Status](https://api.shippable.com/projects/58b5bc1b1304cc0500e0c7b0/badge?branch=master)](https://app.shippable.com/github/seleniumQuery/seleniumQuery) [![Sauce Test Status](https://saucelabs.com/open_sauce/build_matrix/acdcjunior.svg)](https://saucelabs.com/u/acdcjunior) From f87cdc8823a7826d93aa8f234528a2c4b58cc7f2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 12 Oct 2020 18:46:47 +0000 Subject: [PATCH 55/59] build(deps-dev): bump junit from 4.12 to 4.13.1 Bumps [junit](https://github.com/junit-team/junit4) from 4.12 to 4.13.1. - [Release notes](https://github.com/junit-team/junit4/releases) - [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.12.md) - [Commits](https://github.com/junit-team/junit4/compare/r4.12...r4.13.1) Signed-off-by: dependabot[bot] --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 37f67609..aeccfc81 100644 --- a/pom.xml +++ b/pom.xml @@ -133,7 +133,7 @@ junit junit - 4.12 + 4.13.1 test From b3c29063ba9a5118d1feb528ece661aff2a5c2da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B4nio=20=22acdc=22=20Jr?= Date: Sat, 27 Aug 2022 01:24:29 -0300 Subject: [PATCH 56/59] build(deps): bump selenium, htmlunit-driver and webdrivermanager versions --- pom.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index aeccfc81..867dbdec 100644 --- a/pom.xml +++ b/pom.xml @@ -31,9 +31,9 @@ 1.8 UTF-8 - 3.141.59 - 2.33.3 - 2.2.5 + 3.4.0 + 3.64.0 + 5.3.0 From 163d2ea9c82d21f357cdb25e58c45c634aec1e3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B4nio=20=22acdc=22=20Jr?= Date: Thu, 20 Oct 2022 23:28:27 -0300 Subject: [PATCH 57/59] docs(readme): update badges --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index a6852b0a..385fc25e 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,9 @@ [![Maven Central](https://img.shields.io/maven-central/v/io.github.seleniumquery/seleniumquery.svg)](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22io.github.seleniumquery%22%20AND%20a%3A%22seleniumquery%22) + [![codecov.io](https://codecov.io/gh/seleniumQuery/seleniumQuery/branch/master/graph/badge.svg)](https://codecov.io/gh/seleniumQuery/seleniumQuery) [![GitHub license](https://img.shields.io/badge/license-Apache%202-blue.svg)](https://raw.githubusercontent.com/seleniumQuery/seleniumQuery/master/LICENSE.txt) [![Join the chat at https://gitter.im/seleniumQuery/seleniumQuery](https://badges.gitter.im/seleniumQuery/seleniumQuery.svg)](https://gitter.im/seleniumQuery/seleniumQuery?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) @@ -15,7 +17,9 @@ [![Circle CI](https://circleci.com/gh/seleniumQuery/seleniumQuery.svg?style=svg)](https://circleci.com/gh/seleniumQuery/seleniumQuery) --> + [![Sauce Test Status](https://saucelabs.com/open_sauce/build_matrix/acdcjunior.svg)](https://saucelabs.com/u/acdcjunior) From c1324951e3e80a9685115baceacbfddc4e593604 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B4nio=20=22acdc=22=20Jr?= Date: Thu, 20 Oct 2022 23:29:03 -0300 Subject: [PATCH 58/59] docs(readme): update badges --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 385fc25e..e338860d 100644 --- a/README.md +++ b/README.md @@ -19,9 +19,9 @@ [![Sauce Test Status](https://saucelabs.com/open_sauce/build_matrix/acdcjunior.svg)](https://saucelabs.com/u/acdcjunior) +--> ### Feature-rich jQuery-like Java interface for Selenium WebDriver From ab50fa998e02a21c9769eef8f24f51d280271827 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 21 Oct 2022 19:42:48 -0300 Subject: [PATCH 59/59] build(deps): bump commons-text from 1.6 to 1.10.0 (#216) Bumps commons-text from 1.6 to 1.10.0. --- updated-dependencies: - dependency-name: org.apache.commons:commons-text dependency-type: direct:production ... Signed-off-by: dependabot[bot] Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 867dbdec..01c1bc39 100644 --- a/pom.xml +++ b/pom.xml @@ -46,7 +46,7 @@ org.apache.commons commons-text - 1.6 + 1.10.0