Setup Menus in Admin Panel

ITeLearn.com

Day06-Execution terminating after driver.manage().window().maximize(); for chrome 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
Day06-Execution terminating after driver.manage().window().maximize(); for chrome driver
April 16, 2017
4:44 am
Madhura Kulkarni
Member
Forum Posts: 4
Member Since:
March 22, 2017
Offline

With Chrome driver , when test is run , execution is terminated after Line No – 23 – .

Below is Code –

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class Day6Practice {

private static WebDriver driver ;
private static String baseurl ;

public static void main(String[] args) throws Exception {

// TODO Auto-generated method stub
System.setProperty(“webdriver.chrome.driver”,”D:\\Selenium Web Driver\\chromedriver.exe”);

//Initialize driver and base url

driver = new ChromeDriver();
baseurl=”https://geico.com”;

//open the browser window
driver.get(baseurl);

//Maximize browser Window
driver.manage().window().maximize();

//Get the current browser Title
String browserTitle = driver.getTitle();
System.out.println(“The current Page Title is: ” + browserTitle);

//Refresh the browser window
driver.navigate().refresh();
driver.navigate().to(“https://www.amazon.com”); // Navigates to URL.
Thread.sleep(50);
driver.navigate().back();
Thread.sleep(50);
driver.navigate().forward();
driver.close();

}

}

Exception as Below –

at Day6Practice.main(Day6Practice.java:23)

April 19, 2017
9:20 am
Techhelp
Member
Forum Posts: 1906
Member Since:
October 26, 2012
Offline

I dont see any issue in code, please check if you have latest jar files

Forum Timezone: UTC -8

Most Users Ever Online: 70

Currently Online:
15 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Techhelp: 1906

Manu: 114

Shan Nathan: 80

Palanki sai charan: 67

Userone: 59

Vishal Anand: 53

Archana Sapre: 51

Geetha Reddy: 44

useL: 38

Priyanka Perumalla: 36

Member Stats:

Guest Posters: 19

Members: 7936

Moderators: 0

Admins: 1

Forum Stats:

Groups: 1

Forums: 22

Topics: 2088

Posts: 5743

Newest Members: Venkata Bompally, Shwetha Davs, Richa Sharma, Malathi Karekere, MD Fatima KARIM, Ranganath pathipati, Sameer Sehgal, Radhika Thulluri, Manjubhasini Muthusamy, Thamilarasi Murugesan

Administrators: Karthik eLearn (Admin): 49

0 Responses on Discussions"

Main Menu