Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to latest selenium libraries, update docs #71

Merged
merged 1 commit into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions extensions/chorus-selenium/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ description = "chorus-selenium"

dependencies {

implementation group: 'org.seleniumhq.selenium', name: 'selenium-firefox-driver', version: '4.8.3'
implementation group: 'org.seleniumhq.selenium', name: 'selenium-chrome-driver', version: '4.8.3'
implementation group: 'org.seleniumhq.selenium', name: 'selenium-edge-driver', version: '4.8.3'
implementation group: 'org.seleniumhq.selenium', name: 'selenium-support', version: '4.8.3'
implementation group: 'org.seleniumhq.selenium', name: 'selenium-firefox-driver', version: '4.16.1'
implementation group: 'org.seleniumhq.selenium', name: 'selenium-chrome-driver', version: '4.16.1'
implementation group: 'org.seleniumhq.selenium', name: 'selenium-edge-driver', version: '4.16.1'
implementation group: 'org.seleniumhq.selenium', name: 'selenium-support', version: '4.16.1'
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.17.1'

testImplementation group: 'junit', name: 'junit', version: '4.13.2'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ public WebDriver createWebDriver(SeleniumConfig seleniumConfig) {
"", //can't configure version yet
Platform.ANY //can't configure platform yet
);
capabilities.setJavascriptEnabled(true);
Level logLevel = getJavaInfoLogLevel(seleniumConfig);
URL url = getRemoteWebDriverURL(seleniumConfig.getRemoteWebDriverURL());
RemoteWebDriver remoteWebDriver = new RemoteWebDriver(url, capabilities);
Expand Down
2 changes: 1 addition & 1 deletion integrationtest/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ sourceSets {
dependencies {
testImplementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.17.1'
testRuntimeOnly group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.17.1'
testImplementation group: 'org.seleniumhq.selenium', name: 'selenium-support', version: '4.8.3'
testImplementation group: 'org.seleniumhq.selenium', name: 'selenium-support', version: '4.16.1'
testImplementation group: 'junit', name: 'junit', version: '4.13.2'
testImplementation group: 'org.apache.derby', name: 'derby', version: '10.15.2.0'
testImplementation group: 'javax.annotation', name: 'jsr250-api', version: '1.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
*/
package org.chorusbdd.chorus.selftest.selenium.customdriver;

import org.chorusbdd.chorus.selenium.config.DriverLogLevel;
import org.chorusbdd.chorus.selenium.config.SeleniumConfig;
import org.chorusbdd.chorus.selenium.config.SeleniumConfigBean;
import org.chorusbdd.chorus.selenium.config.SeleniumDriverType;
Expand Down Expand Up @@ -51,6 +52,7 @@ public WebDriver createWebDriver(SeleniumConfig seleniumConfig) {
//create a chrome config to permit a driver to be created in superclass
SeleniumConfigBean seleniumConfigBean = new SeleniumConfigBean();
seleniumConfigBean.setDriverType(SeleniumDriverType.CHROME);
seleniumConfigBean.setDriverLogLevel(DriverLogLevel.OFF);
return super.createWebDriver(seleniumConfigBean);
}

Expand Down
4 changes: 3 additions & 1 deletion site/chorus-website/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,6 @@ task updatePageLinks(group: 'chorus-website', type: JavaExec) {

updatePageLinks.dependsOn(generatePages)

build.finalizedBy(updatePageLinks)
build {
finalizedBy(updatePageLinks)
}
Original file line number Diff line number Diff line change
Expand Up @@ -228,5 +228,12 @@ See [Chorus JS](/pages/DistributedTesting/ChorusJS)
<td>SCENARIO</td>
<td>One of: SCENARIO, FEATURE</td>
</tr>
<tr>
<td>driverLogLevel</td>
<td>no</td>
<td>Desired log level for the selenium web driver, an attempt will be made to configure this level if the driver supports it</td>
<td>OFF</td>
<td>One of: ALL, INFO, DEBUG, WARNING, SEVERE, OFF</td>
</tr>

</table>
Loading