Hi Team,
We need to utilize test scripts written through selenium web driver into katalon.
Please let us know whether it’s feasible or not.
Example web driver test case:
package execute;
//import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.Assert;
import Pages.homePage;
public class KSCheck {
static WebDriver driver;
public static void main(String[] args) throws InterruptedException{
System.out.println(“launching Chrome browser”);
System.setProperty(“webdriver.chrome.driver”, “C:/ITS/SeleniumX_2.5.0/workstation/driver/chromedriver.exe”);
driver = new ChromeDriver();
System.out.println(“Chrome launched!!”);
//
driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);
driver.get(“https://ncpsit.ultimatix.net/campus/#/”);
driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);
driver.findElement(By.linkText(“Login”)).click();
driver.findElement(By.xpath((".//*[contains(@class,‘form-control loginID ng-pristine ng-invalid’)]"))).sendKeys(“abc@gmail.com”);
driver.findElement(By.xpath(".//*[contains(@class,‘form-control loginIDPasswrd’)]")).sendKeys(“Password”);
driver.findElement(By.xpath(".//*[@id=‘loginForm’]//button[1]")).click();
}}