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

fix "toString()" method for page object fields #2652

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

asolntsev
Copy link
Member

Before this change, method page(YetAnotherPage.class).body.selects.toString() tries to initialise the page and fetch all its web elements. Now it just prints our the locator (without fetching web elements).

Also, this commit shortens toString for selectors By.tagName and By.id.
Instead of By.tagName: table[3]/By.id: login, users will now see a shorter form table[3]/#login.

Before this change, method `page(YetAnotherPage.class).body.selects.toString()` tries to initialise the page and fetch all its web elements.
Now it just prints our the locator (without fetching web elements).

Also, this commit shortens toString for selectors "By.tagName" and "By.id". Instead of "By.tagName: table[3]/By.id: login", users will now see a shorter form "table[3]/#login".
@asolntsev asolntsev self-assigned this Feb 16, 2024
@asolntsev asolntsev added this to the 7.1.1 milestone Feb 16, 2024
Copy link

sonarcloud bot commented Feb 16, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@asolntsev asolntsev merged commit c3ac673 into main Feb 16, 2024
12 of 13 checks passed
@asolntsev asolntsev deleted the fix-to-string-for-page-object-fields branch February 16, 2024 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant