Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

getting the driver set up

 
Ranch Hand
Posts: 206
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The line:
WebDriver driver = new WebDriver ChromeDriver();
is giving an error.  I'm looking at other examples and I don't know what I am doing differently.
Cannot instantiate the type WebDriver is what it is saying when I hover over the the underlined word WebDriver.  


 
Marshal
Posts: 74630
335
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, line 12 isn't correct.
You should be able to tell from the compiler error messages where the syntax errors are. If you use an IDE there will be red arks against the lines with syntax errors.
 
Rancher
Posts: 4801
50
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you link to one of the examples that looks like your code?
 
Sheriff
Posts: 7113
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Is the class ChromeDriver a subclass of Webdriver?  If so, you can just remove "WebDriver".  You don't "type" a constructor.
 
kevin Abel
Ranch Hand
Posts: 206
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Campbell,Dave and Knute
The Webdriver did not need to be on the right side of the equal sign.  The eclipse error went away.  I can continue working on my project thanks to all of your assistance.  I was once asking lots of questions on the UFT / QTP HPE software side and then many years later I often became an answer person.  I hope that happens again here.  
Thanks,
Kevin
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic