Description

In this video, Covered Selenium Pilot Project.

Scenario : After entering the text in two input fields The next button should be enabled

Steps : 

1. navigate to url : https://www.freelancer.in/post-project/ 

2. validate title

3. enter text under Choose a name for your project :  pilot project

4. enter text under Tell us more about your project :  as part of tranformation we are trying to automate freelancer website

5. next button should be enabled

Code : 

package com.pilot;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;

public class Freelancer {
    
    public static void main(String[] args) throws InterruptedException {
        
    System.setProperty("webdriver.ie.driver", "IE Driver\\IEDriverServer32.exe");
    WebDriver driver = new InternetExplorerDriver();
    
    driver.get("https://www.freelancer.in/post-project/");
    Thread.sleep(5000);
    
    System.out.println(driver.getTitle());
    
    boolean value_before =         driver.findElement(By.tagName("button")).isEnabled();
    System.out.println(value_before);
    
    driver.findElement(By.name("visible_name")).sendKeys("pilot project");
    driver.findElement(By.name("visible_description")).sendKeys(" as part of tranformation we are trying to automate freelancer website");
    
    Thread.sleep(5000);
    boolean value_after =  driver.findElement(By.tagName("button")).isEnabled();
    System.out.println(value_after);
    
    driver.quit();
}

}

©2020 by Real Time Selenium WebDriver Automation.