info.kapable.sondes.scenarios.action.VerifierTexteDansPageAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of AutomationScenarioAPI Show documentation
Show all versions of AutomationScenarioAPI Show documentation
Java API to execute scenario from an XML command file
The newest version!
package info.kapable.sondes.scenarios.action;
import info.kapable.sondes.scenarios.ScenarioException;
import org.openqa.selenium.WebDriver;
public class VerifierTexteDansPageAction extends Action {
protected String text;
protected String erreur;
public VerifierTexteDansPageAction(String text, String erreur) {
this.text = text;
this.erreur = erreur;
}
@Override
public void executeAction(WebDriver driver) throws ScenarioException {
this.logEvent("Firefox", "Verification Texte pr�sent : "+text);
if(!driver.getPageSource().contains(text))
{
throw new ScenarioException("ERREUR: " + erreur);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy