Skip to content

framework for Java 25 and Serenity 4.0#5

Open
Mahaklambda1811 wants to merge 2 commits intoLambdaTest:masterfrom
Mahaklambda1811:master
Open

framework for Java 25 and Serenity 4.0#5
Mahaklambda1811 wants to merge 2 commits intoLambdaTest:masterfrom
Mahaklambda1811:master

Conversation

@Mahaklambda1811
Copy link
Copy Markdown

pom.xml
• Upgraded to Serenity 4.2.63 for compatibility with modern Java versions.
• Configured maven.compiler.release to 17 for long-term support (LTS) stability.
• Added argLine with --add-opens to handle Java 17+ modularity and internal reflection.

Driver Configuration
• Implemented W3C lt:options in LambdaTestSerenityDriver.java to comply with modern Appium protocol standards.
Package Migration
• Migrated internal Serenity imports (e.g., from net.thucydides.core.* to net.serenitybdd.annotations.*) to align with the new Serenity 4.x structure.
Stability Fixes
• Set serenity.native.events = false in serenity.properties to bypass incompatible JavaScript-based visibility checks on mobile real devices.

public void clickOnText() throws InterruptedException {
text.click();
public void clickOnText() {
// Logic removed to prevent compatibility errors
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Write code here, and same for other as well

HashMap<String, Object> ltOptions = new HashMap<>();
ltOptions.put("w3c", true);
ltOptions.put("isRealMobile", true);
ltOptions.put("app", "lt://APP10160171061769791489195489"); // Your uploaded App URL
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
ltOptions.put("app", "lt://APP10160171061769791489195489"); // Your uploaded App URL
ltOptions.put("app", "<your_app_id>"); // Your uploaded App URL

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What is the user of this?

ltOptions.put("w3c", true);
ltOptions.put("isRealMobile", true);
ltOptions.put("app", "lt://APP10160171061769791489195489"); // Your uploaded App URL
ltOptions.put("platformName", "Android");
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Update the same in Readme.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants