Skip to content

#2786 allow page objects with fields of type List<SelenideElement> and List<SelenideAppiumElement>#2787

Merged
asolntsev merged 5 commits intomainfrom
fix/2786-page-object-with-list
Jul 23, 2024
Merged

#2786 allow page objects with fields of type List<SelenideElement> and List<SelenideAppiumElement>#2787
asolntsev merged 5 commits intomainfrom
fix/2786-page-object-with-list

Conversation

@asolntsev
Copy link
Copy Markdown
Member

@asolntsev asolntsev commented Jul 22, 2024

as a side effect, I fixed method $$.iterator() for mobile elements. Before now, it returned Iterator<SelenideElement> instead of Iterator<SelenideAppiumElement>.

…d List<SelenideAppiumElement>

as a side effect, I fixed method $$.iterator() for mobile elements. Before now, it returned Iterator<SelenideElement> instead of Iterator<SelenideAppiumElement>.
@asolntsev asolntsev self-assigned this Jul 22, 2024
@asolntsev asolntsev added this to the 7.3.4 milestone Jul 22, 2024
it's needed when AssertJ assert fails, not Selenide's one.
(after opening a Safari browser) instead of clicking "Address" element, just call old good "driver.navigate().to(deepLinkUrl)". It's much more reliable.

Also, SAFARI_ELEMENTS_TIMEOUT can now be much shorter because the alert "are you sure you want open deeplink?" appears almost immediatelly.
@sonarqubecloud
Copy link
Copy Markdown

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.

List collection of type SelenideElement.class: RemoteWebElement cannot be cast to SelenideElement

1 participant