Skip to content

Commit

Permalink
Adopt iframe src to 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiromu Hota committed Jun 7, 2018
1 parent 3e0a5de commit ca60a42
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ public void testConnect() {
// if any repository is already registered
if ( driver.findElements( By.xpath( "//div[text() = 'Repository Manager...']" ) ).size() == 1 ) {
clickElement( "//div[text() = 'Repository Manager...']" );
driver.switchTo().frame( driver.findElement( By.xpath(".//iframe[@src='/spoon/osgi/repositories/web/index.html#repository-manager']") ) );
driver.switchTo().frame( driver.findElement( By.xpath(".//iframe[@src='/spoon/osgi/repositories-plugin-core/8.1.0.0-365/index.html']") ) );
} else {
driver.switchTo().frame( driver.findElement( By.xpath(".//iframe[@src='/spoon/osgi/repositories/web/index.html']") ) );
driver.switchTo().frame( driver.findElement( By.xpath(".//iframe[@src='/spoon/osgi/repositories-plugin-core/8.1.0.0-365/index.html#/add']") ) );
}
assertEquals( 1, driver.findElements( By.xpath( "//button[@id = 'btnClose']" ) ).size() );
}
Expand All @@ -197,7 +197,7 @@ public void testConnect() {
public void testMarketplace() {
clickElement( "//div[text() = 'Tools']" );
clickElement( "//div[text() = 'Marketplace']" );
driver.switchTo().frame( driver.findElement( By.xpath(".//iframe[@src='osgi/pentaho-marketplace/8.0.0.0-28/main.html']") ) );
driver.switchTo().frame( driver.findElement( By.xpath(".//iframe[@src='osgi/pentaho-marketplace/8.1.0.0-365/main.html']") ) );
assertEquals( 1, driver.findElements( By.xpath( "//div[text() = ' Available ']" ) ).size() );
}

Expand Down

0 comments on commit ca60a42

Please sign in to comment.