Skip to content

Commit

Permalink
fix: Fixed an issue with the screenplay webdriver integration
Browse files Browse the repository at this point in the history
Browser windows were not closing correctly when there were more than one driver used in a single test.
  • Loading branch information
wakaleo committed Jun 2, 2016
1 parent 0222177 commit 0ea09c7
Showing 1 changed file with 3 additions and 3 deletions.
@@ -1,8 +1,6 @@
package net.thucydides.core.webdriver;

import com.google.common.collect.Lists;
import net.thucydides.core.guice.Injectors;
import net.thucydides.core.util.EnvironmentVariables;
import org.apache.commons.lang3.StringUtils;
import org.openqa.selenium.WebDriver;

Expand Down Expand Up @@ -202,7 +200,9 @@ public InstanceRegistration(final String driverName) {


public void forDriver(final WebDriver driver) {
driverMap.put(normalized(driverName), driver);
if (!driverMap.values().contains(driver)) {
driverMap.put(driverName, driver);
}
// currentDriver = normalized(driverName);
}
}
Expand Down

0 comments on commit 0ea09c7

Please sign in to comment.