title: Selenium Assert Equals to Value1 or Value2
body: <p>I want to test in Selenium (Java, Testng)
  If my actual value is equal to one of the two values because my value can be Value1 or Value2 and both values will be correct.</p>
  
  <p>If I want to assert only one equality I use this construction:</p>
  
  <pre><code>String expectedPopUpV1 = "Value1";
  String expectedPopUpV2 = "Value2";
  String actualPopUp = driver.findElement(By.cssSelector(Value)).getText();
  Assert.assertEquals(actualPopUp,expectedPopUp);
  </code></pre>
  
  <p>but what should I do if I want to make something like</p>
  
  <pre><code>Assert.assertEquals(actualPopUp,expectedPopUp1||expectedPopUp1);
  </code></pre>