import com.jfunk.core.JFunk;
import org.openqa.selenium.By;
public class ElementInteractionExample {
public static void main(String[] args) {
JFunk jfunk = new JFunk();
jfunk.navigateTo("https://example.com");
jfunk.click(By.id("loginButton"));
}
}
import com.jfunk.data.JFunkDataProvider;
import com.jfunk.core.JFunk;
import org.openqa.selenium.By;
public class DataDrivenTestExample {
@JFunkDataProvider("testData.csv")
public void testLogin(String username, String password) {
JFunk jfunk = new JFunk();
jfunk.navigateTo("https://example.com");
jfunk.type(By.id("usernameField"), username);
jfunk.type(By.id("passwordField"), password);
jfunk.click(By.id("loginButton"));
}
}
webdriver.driver.path=/path/to/chromedriver
webdriver.driver.type=chrome