This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.openqa.selenium.By; | |
import org.openqa.selenium.support.ui.WebDriverWait; | |
import org.openqa.selenium.chrome.ChromeDriverService; | |
import org.openqa.selenium.remote.DesiredCapabilities; | |
import org.openqa.selenium.remote.RemoteWebDriver; | |
import static org.openqa.selenium.support.ui.ExpectedConditions.* | |
import org.openqa.selenium.support.ui.*; | |
import openqa.selenium.OutputType.*; | |
// Required to start counting time which will get reported at the end of this code. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Experience { | |
/** | |
* Epxerience is defined by pain and pleausure. We take into account the quality | |
* of the pleasure experiences, following J.S. Mill | |
* @param {Number} pain [description] | |
* @param {Number} pleasureQuantity [description] | |
* @param {Number} pleasureQuality [description] | |
* @return {Object} | |
*/ | |
constructor(pain, pleasureQuantity, pleasureQuality) { |