How to solve 'Webdriver cannot be resolved to a type' Error in Selenium?

preview_player
Показать описание
In this video it shows how one can resolve the "Webdriver cannot be resolved to a type" error while working with selenium in Eclipse.

The JAR files mentioned in the video can be downloaded from the below path:

Complete source code and other details of this video are posted in the below link:

The code is also copied below:

public class ErrorDemo {

public static void main(String[] args) {
// TODO Auto-generated method stub
WebDriver driver = new ChromeDriver();

}

}

-
Рекомендации по теме
Комментарии
Автор

Bhagvan aapko lambi umr de. Jo mai 4 ghante se nhi kr paya o appka video se 2 minute me kr liya.

anilyadav
Автор

Hi Mam I tried as you said but still not able to resolve it. It sucks my entire day. I don't know why it's still not resolving for me. Please help me on this.

rajeshbe
Автор

Hi madam.. I added all jars .. but still same error...what to do ????

poornimaa
Автор

Thank you so much, i was stuck in here for 2 day, truth to be told when you say we need to put configure build path not into module path but classpath cleared my trouble

servantofallah
Автор

Thank you so much. You have clearly shown how to add jar files in a particular path. I have solved my errors

sreeshavittalkp
Автор

Thnq, so much Madam the way your teaching is very simple&clear 😊

NaveenKumar-yhtr
Автор

Check your project if there is module info class delete it because of it reference libraries are not accessable..

While creating the new java project check the module info java.file is unselect.. (whichi is present at bottom )

MohammedAmjad-izdx
Автор

Hi, am new to selenium and using java 8 in java build path libraries I dont see module path and class path even am facing the same error Chromedrover cannot be resolved to a type and am using java 8

ss-kioo
Автор

i dont have the modulepath or classpath folder in buildpath

jyo
Автор

still iam facing the issue of The type org.openqa.selenium.webdriver is not accessible after importing the selenium jars in classpath.

kirankumarkondapally
Автор

HI, even after adding the jars i still see the errors while importing, please help

reshmapriyadarshini
Автор

Thank you so much❤, i wasted 1 hr before finding your video😅

gkfactsandquiz
Автор

hank youThank you so much.I was struggling for more than a week due to those errors.Finally now resolved by your video..Thank you

priyaharshika
Автор

Thank you very much, I trouble for last two weeks, I saw a your video to solve problem my self

sailokavarapu
Автор

Thanks Man its working fine now, i was last two days struggle those error now solved with help of your awesome video

suberiyashajahan
Автор

In my eclipse add external jar under libraries didn't display class mam please help me
It will show error chrome drive cannot be resolved to a type

nethainfo
Автор

Thank you so much.. pls keep doing videos like this.. It would be really helpful for beginners like me

avaishnavi
Автор

Thanks mam...
It's too helpful I solve my problem from this video...

poojanimbalkar
Автор

Thanks to you alot! bcz of this I ran the code which had problem.

ginftzj
Автор

thank u but doing all this still not geeting import option for webdriver in qiuk fix suggestion .

amrut