Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

Support Selenium 4 #164

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Support Selenium 4 #164

wants to merge 9 commits into from

Conversation

oriddd
Copy link
Contributor

@oriddd oriddd commented Dec 14, 2021

Adding logic to support Selenium 4 due to issue #167

…dencies.

Signed-off-by: ori-d <ori.dafna@testproject.io>
Signed-off-by: ori-d <ori.dafna@testproject.io>
Signed-off-by: ori-d <ori.dafna@testproject.io>
Signed-off-by: ori-d <ori.dafna@testproject.io>
… upgrade

Signed-off-by: ori-d <ori.dafna@testproject.io>
Signed-off-by: ori-d <ori.dafna@testproject.io>
Signed-off-by: ori-d <ori.dafna@testproject.io>
Signed-off-by: ori-d <ori.dafna@testproject.io>
Signed-off-by: ori-d <ori.dafna@testproject.io>
@oriddd oriddd changed the title Tasks/tp 16635 Support Selenium 4 Dec 21, 2021
@@ -86,7 +86,7 @@ private static boolean isRedactRequired(final ReportingCommandsExecutor executor
// Check if element is a mobile password element
if (platformName.equalsIgnoreCase(Platform.ANDROID.name())) {
// Making sure it's not Mobile Web
if (StringUtils.isEmpty(capabilities.getCapability(CapabilityType.BROWSER_NAME))) {
if (StringUtils.isEmpty(capabilities.getCapability(CapabilityType.BROWSER_NAME).toString())) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if the capability isn't set?

@@ -160,7 +160,7 @@ default void reportCommand(final Command command, final Response response) {
}

// Check if executed from a FluentWait loop
boolean isFluentWait = traces.stream().anyMatch(t -> t.getClassName().equals(FluentWait.class.getName()));
boolean isFluentWait = traces.stream().anyMatch(t -> t.getClassName().equals(AppiumFluentWait.class.getName()));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't selenium have fluent wait anymore? What happened to it?

/**
*
*/
public static final String APPIUM_CAPABILITY_PREFIX = "appium:";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing documentation with explanation why this is needed

* @throws AgentConnectException if Agent is not responding or responds with an error
* @throws InvalidTokenException if the token provided is invalid
* @throws MalformedURLException if the Agent API base URL provided is malformed
* @throws ObsoleteVersionException if the SDK version is incompatible with the Agent
*/
public AndroidDriver(final Capabilities capabilities)
public AndroidDriver(final MutableCapabilities capabilities)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this use MobileOptions, same as the new standard?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants