Setup Menus in Admin Panel

ITeLearn.com

Selenium Web Driver | Selenium Automation | Discussions | ITeLearn.com

Forum usage guidelines

  1. Search First.: If you don’t find a similar post, start a new topic. If you find a similar thread and still have a question, reply to that topic. Duplicate threads will be ignored/deleted without warning.
  2. Proper Subject: Ensure you choose a very appropriate topic name. Else it will be tough to get support from other members.
  3. Patience, please: Our Tech team or other members will usually try to respond within 24 hours on weekdays and max within 48 hours on weekends. Sometimes sooner.
  4. Share opinions: Please feel free to reply, add or comment on any ongoing topics. Collective learning will be of great benefit to all.

 
ITeLearn reviews from participants.

Please consider registering
guest

Log In

Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

   

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Selenium Web Driver
October 26, 2018
9:07 am
Jyotsna Kallepalli
Member
Forum Posts: 6
Member Since:
February 7, 2018
Offline

import java.util.concurrent.TimeUnit;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.WebDriver;
//import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class mySWD3 {

String vHomeValue, vDownPayment, vLoanAmt, vIntRate;

@Before
public void myBefore() {
System.out.println(“My before test”);
//Initialize my test data/Parameters/Variables

vHomeValue = “300200”;
vDownPayment = “100200”;
vLoanAmt = “200000”;
vIntRate = “4.74”;

System.out.println(“Home value is : ” + vHomeValue);
System.out.println(“Down Payment is : ” + vDownPayment);
System.out.println(“Loan Amt is : ” + vLoanAmt);
System.out.println(“Intrest Rate is : ” + vIntRate);

//selenium webdriver object needed in order to interact with objects in web page
WebDriver driver;
System.setProperty(“webdriver.gecko.driver”, “‪C:\\selenium Jar files\\geckodriver.exe”);
driver = new FirefoxDriver();
//System.setProperty(“webdriver.chrome.driver”, “C:\\***\\eclipse-workspace\\DDF1\\Drivers\\chromedriver.exe”);
//driver = new ChromeDriver();

//timeouts, cookies, userprofiles,resize AUT window…..
driver.manage().timeouts().implicitlyWait(7, TimeUnit.SECONDS);
driver.manage().window().maximize();
driver.get(“https://www.mortgagecalculator.org/”);
driver.navigate().to(“https://www.mortgagecalculator.org/”);

}

@Test
public void myTest() {
System.out.println(“My Test”);

System.out.println(“Home value is : ” + vHomeValue);

}

@After
public void myAfter() {
System.out.println(“My After test”);
}

}
I have included code above I am trying to run in both Chrome and Firefox, same error encountered… Class not found mySWD3 .

Can some one help with this / did anyone got same error ….

Forum Timezone: Asia/Kolkata

Most Users Ever Online: 70

Currently Online:
5 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Techhelp: 1971

Manu: 114

Shan Nathan: 80

Palanki sai charan: 67

Userone: 59

Vishal Anand: 53

Archana Sapre: 51

Geetha Reddy: 44

useL: 38

Kavya Vangala: 37

Member Stats:

Guest Posters: 19

Members: 8254

Moderators: 0

Admins: 1

Forum Stats:

Groups: 1

Forums: 22

Topics: 2163

Posts: 5912

Newest Members: karibandi Akki, Liana Pan, Venkata Ramana Edagottu, Ralph Arrey, Vinay Singh Kanawat, Harsha S, Ronnie Alauddin, Sushma Shetty, Jayakumar Arukutty, Manjula Kamarajan

Administrators: Karthik eLearn (Admin): 49

0 Responses on Discussions"

Main Menu