All Downloads are FREE. Search and download functionalities are using the official Maven repository.

info.kapable.sondes.scenarios.action.VerifierTexteDansPageAction Maven / Gradle / Ivy

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