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

Selenium: check that the IDE is loaded before switching to IDE application frame #9117

Merged
merged 2 commits into from
Mar 16, 2018

Conversation

SkorikSergey
Copy link
Contributor

What does this PR do?

This PR adds to switchFromDashboardIframeToIde method checking that the IDE is loaded before switching to IDE application frame.

What issues does this PR fix or reference?

#9100

@SkorikSergey SkorikSergey added kind/bug Outline of a bug - must adhere to the bug report template. status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. team/che-qe labels Mar 16, 2018
}

public void switchFromDashboardIframeToIde(int timeout) {
new WebDriverWait(this, timeout)
.until(ExpectedConditions.frameToBeAvailableAndSwitchToIt(By.id("ide-application-iframe")));
.until(visibilityOfElementLocated(By.id("ide-application-iframe")));
Copy link
Contributor

Choose a reason for hiding this comment

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

There is method wait(timeout) below in the class. You can use it to simplify the code.

@SkorikSergey SkorikSergey merged commit b1b8acd into master Mar 16, 2018
@SkorikSergey SkorikSergey deleted the che-9100 branch March 16, 2018 16:28
@benoitf benoitf removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Mar 16, 2018
@benoitf benoitf added this to the 6.3.0 milestone Mar 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants