Тёмный

Selenium Beginner Tutorial 5 - How to write first Selenium script (java) - 5 Easy Steps 

Automation Step by Step
Подписаться 523 тыс.
Просмотров 381 тыс.
50% 1

Free Tutorials - automationstepbystep.com/
Note - if you get this error - The path to the driver executable must be set by the webdriver.chrome.driver system property
Pls see the next video of the series, It is explained there. • Selenium Beginner Tuto... And after this also see this • Selenium How to use We...
Today we will learn
------------------------------
Step 1 - How to do the SetUp
• Java
Step 2 - Create a Java Project in Eclipse
Step 3 - Add selenium jars
www.seleniumhq.org/
Step 4 - Write a program to open browser
Step 5 - Run and validate
_____________________________________________________ .
.
_______ ONLINE COURSES TO LEARN _______
Visit - automationstepbystep.com/
----------- UI TESTING -----------
Selenium Beginners - bit.ly/2MGRS8K
Selenium Java Framework from Scratch - bit.ly/2N9xvR6
Selenium Python - bit.ly/2oyMp5x
Selenium Tips - bit.ly/2owxc50
Selenium Builder - bit.ly/2MKNtlq
Katalon Studio - bit.ly/2wARFdi
Robot Framework - bit.ly/2Px6Ue9
----------- API TESTING -----------
Web Services (API) - bit.ly/2MGafL7
SoapUI - bit.ly/2MGahmd
Postman - bit.ly/2wz8LrW
General - bit.ly/2PYdwmV
----------- MOBILE TESTING -----------
Mobile Playlist - bit.ly/2PxpeUv
----------- CI | CD | DEVOPS -----------
Jenkins Beginner - bit.ly/2MIn8EC
Jenkins Tips & Trick - bit.ly/2LRt6xC
Docker - bit.ly/2MInnzx
----------- VERSION CONTROL SYSTEM -----------
Git & GitHub - bit.ly/2Q1pagY
----------- PERFORMANCE TESTING -----------
JMeter Beginner - bit.ly/2oBbtIU
JMeter Intermediate - bit.ly/2oziNVB
JMeter Advanced - bit.ly/2Q22Y6a
JMeter Tips & Tricks - bit.ly/2NOfWD2
Performance Testing - bit.ly/2wEXbLS
----------- JAVA -----------
Java Beginners - bit.ly/2PVUcXs
Java Tips & Tricks - bit.ly/2CdcDnJ
----------- MAVEN -----------
Maven - bit.ly/2NJdDRS
----------- OTHERS -----------
Redis- bit.ly/2N9jyCG
Misc - bit.ly/2Q2q5xQ
Tools & Tips - bit.ly/2oBfwoR
QnA Friday- bit.ly/2NgwGpw
Sunday Special - bit.ly/2wB23BO
Ask Raghav- bit.ly/2CoJGWf
Interviews - bit.ly/2NIPPxk
All Playlists - bit.ly/2LSiezA
----------- FOLLOW -----------
Facebook - / automationstepbystep
Twitter - / automationsbs
RU-vid - / automationstepbystep
Like, Subscribe, Share
You can support my mission for education by sharing this knowledge and helping as many people as you can

Опубликовано:

 

8 фев 2017

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 647   
@ceeyi229
@ceeyi229 7 лет назад
Absolutely wonderful! I'm still new to Selenium & quite a lot of learning to do. As such, I've been scouring RU-vid for tutorials to help me learn all aspects of Selenium WebDriver (&also Java). Needless to say, among a sea of videos available on any number of subjects, very few are worth watching & learn from. Yours seem to be one of those quality videos. This is the first of your videos I've watched. I'm already impressed! Video quality is very good, nicely presented, good content with useful information. I particularly liked the tips you mentioned in this video. As I said, there are numerous videos on this subject on RU-vid. Many of them are a disappointment. They contain barely anything useful but lots of repetitions, unnecessary fluff and fillers. Every so often, one hits upon a true gem. This video is that. Thank you so much. Keep up your good work! I'm grateful for what I'm getting from your tutorial
@RaghavPal
@RaghavPal 7 лет назад
Hi, thanks for your great comments. Really touched and glad to know that you found it helpful. Keep watching and learning.
@deepikasaxena640
@deepikasaxena640 4 года назад
I completed Api & Postman tutorial from ur channel it's 👌👌.Now started learning Selenium I hope I will learn a lot here with simple easy short videos....
@RaghavPal
@RaghavPal 4 года назад
Great to know this Deepika, you can find all here - automationstepbystep.com/
@bobbysugianto5744
@bobbysugianto5744 5 лет назад
Really cool tutorial! With good language and clear explanation and example! Keep up the good work! Subscribed and liked :) God Bless
@RaghavPal
@RaghavPal 5 лет назад
Thanks for the message Bobby
@smanap3859
@smanap3859 6 лет назад
Thank you Raghav sir. Great content, presentation and great time saver. strongly recommends ur videos if anyone want to be experts..
@RaghavPal
@RaghavPal 6 лет назад
Thanks for watching Smana
@shubhambadgujar7737
@shubhambadgujar7737 3 года назад
I am searching for my 1st proper selenium tutorial and here it is...........thanks bro👍
@RaghavPal
@RaghavPal 3 года назад
So happy to know this Shubham, you can check all here - automationstepbystep.com/
@bassantgamal8873
@bassantgamal8873 4 года назад
Hi Raghav, Thank you for this great tutorial. I am a beginner with Selenium, and this playlist is really awesome.
@RaghavPal
@RaghavPal 4 года назад
You're welcome Bassant
@littlevrinda6390
@littlevrinda6390 6 лет назад
Thanks for this tutorial. I have just started learning selenium. I found FirePath is not working and i heard there is a better xpath tool ChroPath, could you please make tutorial for ChroPath tool. Thank you.
@modardery6297
@modardery6297 4 года назад
really i appreciate all your efforts , your videos even includes the questions in my mind
@RaghavPal
@RaghavPal 4 года назад
Glad to hear that
@Believer09_29
@Believer09_29 6 лет назад
Simply good for beginners in selenium, thanks.
@RaghavPal
@RaghavPal 6 лет назад
thanks for your message
@FouzelddinAbassoumi
@FouzelddinAbassoumi 6 лет назад
why i need to put my jars into folder and organize them, and maven handle dependencies management for me
@RaghavPal
@RaghavPal 6 лет назад
Hi, you are right, if you are already using maven then that is the best way. I wanted to show this approach for beginners who do not know maven. I will cover it in coming sessions
@Muardhal
@Muardhal 5 лет назад
You are very good teacher and your English is very nice. Thank you. .
@RaghavPal
@RaghavPal 5 лет назад
You're welcome Muardhal
@xeone1920
@xeone1920 2 года назад
You’re awesome! That was straight forward, thank you
@RaghavPal
@RaghavPal 2 года назад
Most welcome
@azeemali7102
@azeemali7102 Год назад
exactly Kumar, tips and shortcuts that's what helping people learn IT is all about!
@RaghavPal
@RaghavPal Год назад
thanks
@klaasklever4096
@klaasklever4096 3 года назад
Thx a lot for making this tutorial. It really helped a lot
@RaghavPal
@RaghavPal 3 года назад
Glad it helped!
@Bhuban2010
@Bhuban2010 5 лет назад
Very helpful video. Thanks a lot 🙏
@RaghavPal
@RaghavPal 5 лет назад
You're welcome Kanan
@madhus6072
@madhus6072 4 года назад
@raghav - I tried setting up selenium with Python on eclipse I am not sure where to add selenium jar files on the project which is giving me error un resolved imports.
@RaghavPal
@RaghavPal 4 года назад
Hi Madhu, you can also create a maven project, Watch the Selenium Java Framework tutorials here - automationstepbystep.com/
@Jagadish_Siddu_Janasena
@Jagadish_Siddu_Janasena 2 года назад
Your way of explaining is very very gud....and it's easily understandable...Even a School children can understand... Thats the magic of ur explaination.. &&& Thank you for the video 😊
@RaghavPal
@RaghavPal 2 года назад
I am so happy & humbled to see your message. Thanks
@ZafarDidit
@ZafarDidit 6 лет назад
Hi Raghav What the difference between downloading and adding Selenium Standalone Server Jar and Selenium Client Driver Jar - with several Jars in one folder?
@RaghavPal
@RaghavPal 6 лет назад
Hi, keeping all the jars in one folder helps in better organization. thats all. There is not rule for it.
@asid1825
@asid1825 4 года назад
This is first day learning selenium. I m gonna take this journey with u.
@RaghavPal
@RaghavPal 4 года назад
All the best 👍
@ravireddy07
@ravireddy07 3 года назад
@@RaghavPal Can we use any other editor other than Eclipse...?
@chandramohanp3739
@chandramohanp3739 5 лет назад
Hi Mate, when I try first program... Getting error occurred during initialization of boot layer andunqble to drive module
@RaghavPal
@RaghavPal 5 лет назад
Hi Chandramohan, will need more details and logs to troubleshoot.
@sushanttavrawala8394
@sushanttavrawala8394 7 лет назад
Hello Raghav sir, I am getting error message that, Error: Could not find or load main class test.Firstseleniumwebdriver y would you be able to assist please with this error?
@RaghavPal
@RaghavPal 7 лет назад
Hi Sushant, just check this link and validate the options - stackoverflow.com/questions/11235827/eclipse-error-could-not-find-or-load-main-class
@MysteryWatchTV
@MysteryWatchTV 2 года назад
Very easy and understandable project. Thanx🙏🙏
@RaghavPal
@RaghavPal 2 года назад
Most welcome
@ranjithaprabhu3376
@ranjithaprabhu3376 6 лет назад
Hello Raghav, You are doing a wonderfil job0 and as always i love watching your tutorials, if you have time, can you please post videos with :Visual source code(Typescript) along with protractor and cucumber and chai. This would be great .
@RaghavPal
@RaghavPal 6 лет назад
Hi Ranjitha, thanks for watching and liking these sessions. I will definitely do session on these topics.
@priteshpatil4520
@priteshpatil4520 6 лет назад
Helpful !!! Thanks for Video
@RaghavPal
@RaghavPal 6 лет назад
You're welcome Pritesh.
@Digitabe
@Digitabe 3 года назад
Very helpful tutorial! thanks for sharing
@RaghavPal
@RaghavPal 3 года назад
You are so welcome Abdul
@chand101989
@chand101989 6 лет назад
bro your tutorials are awesome and you are an experienced engineer i would like you to make a video showing some career path for us.. i'm an automation engineer having 4 years of experience, i want some sort of guidance videos, like where should i go from there in my career, currently i'm aiming to become a devOps engineer in the future but i'm still struggling so people like you who are in industry for a long period of time knows the ways where to go where to not and it would be great if you make a video on this topic ... keep up this awesome work (Y)
@RaghavPal
@RaghavPal 6 лет назад
Hi Shujaat, I will definitely create video session on some career tips. Thanks for your message
@fooziewoozie
@fooziewoozie 3 года назад
Hello, I tried following your step-by-step process, using the same jar but with the latest versions of Java, Eclipse, and Firefox browser. Will using the latest versions cause error in following your process? I am currently facing a problem where in the module-info.java says that it "requires selenium.server.standalone;" and I can't seem to find a fix online, or at least, a fix that is understandable by someone with no background at all. Should I use the versions that you used (Java, Eclipse, Safari) to make it work? I am stuck but I really want to understand where I went wrong in the first place to fully grasp everything. Please help.
@RaghavPal
@RaghavPal 3 года назад
Hi Chelsea, you can use webdriver manager. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-8vWTgyoG0nc.html I will also suggest that you create a maven project ru-vid.com/group/PLhW3qG5bs-L8oRay6qeS70vJYZ3SBQnFa
@shripadangre3983
@shripadangre3983 5 лет назад
I watched the postman tutorial and it was really helpful, looking forward for selenium tutorial..
@RaghavPal
@RaghavPal 5 лет назад
Great to know this Shripad, you can see all UI Testing videos here - automationstepbystep.com/ui-testing/
@andresviveros3994
@andresviveros3994 3 года назад
@@RaghavPal Sorry what are jars? Thanks
@asifsheikh5600
@asifsheikh5600 2 года назад
Thank you so much for videos on Automation.
@RaghavPal
@RaghavPal 2 года назад
Most welcome Asif
@shaikalavudeen1649
@shaikalavudeen1649 6 лет назад
asme bro go ahead i love the way how u teach
@RaghavPal
@RaghavPal 6 лет назад
thanks Shaik
@amanquadri4074
@amanquadri4074 5 лет назад
Ragahv, is there any requirement of any specific version of Firefox for selenium 2.53?
@RaghavPal
@RaghavPal 5 лет назад
Yes, if you are using selenium ver before 3.0 it might not work with Firefox above ver 47. You can check the next video on how to use gecko driver and use latest selenium ver. You can also use webdriver manager ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-8vWTgyoG0nc.html
@azeemali7102
@azeemali7102 Год назад
appreciate your tutorial, love shortcuts, main
@RaghavPal
@RaghavPal Год назад
You're welcome!
@manyasharma7868
@manyasharma7868 5 лет назад
Hi, the video is quite helpful. But, I am facing an issue. As I run the project the browser is opening but the URL is not getting opened. Can u help me know that where am I going wrong?
@RaghavPal
@RaghavPal 5 лет назад
Hi Manya, check the next video in the series ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-5N8GAn-bXnM.html Also check - automationstepbystep.com/ui-testing/
@banilrayla9190
@banilrayla9190 2 года назад
could someone help me with object creation line please, is there any syntax for object creation in selenium.
@RaghavPal
@RaghavPal 2 года назад
It follows the programming language syntax that you are using, in this case it will be java
@flowerpixel
@flowerpixel 7 лет назад
THANK YOU SO MUCH
@RaghavPal
@RaghavPal 7 лет назад
You're welcome
@veeraraghavansrinivasan6635
@veeraraghavansrinivasan6635 5 лет назад
Where is the selenium installation video session? since i hope as per the video selenium software was already installed and just replacing the jar file, Could you please advise on this.
@RaghavPal
@RaghavPal 5 лет назад
Hi Veeraraghavan, You can see the Playlist here - ru-vid.com/group/PLhW3qG5bs-L_s9HdC5zNshE5Ti8jABwlU
@ajaykumar-gz8df
@ajaykumar-gz8df 8 месяцев назад
Hi Raghav, which version Browser(chrome&Firefox ) I need to use for 2.53 Selenium version.
@RaghavPal
@RaghavPal 8 месяцев назад
Ajay According to the Selenium documentation, Selenium WebDriver 2.53 is compatible with the following browser versions: Chrome: 63-65 Firefox: 45-46
@ravi52157
@ravi52157 5 лет назад
Hi Raghav , for became a automation eng what should I know in Java, I should be expert in Java or tell what should I cover I Java so that I can write a script for automation
@RaghavPal
@RaghavPal 5 лет назад
Hi Ravi, you can start with some basic concepts like OOP and then start creating Automation Frameworks
@dhanyanair5297
@dhanyanair5297 4 года назад
Thank you so much Raghav for this wonderful tutorial. When I tried to execute my first selenium program I'm facing below error and not able to proceed. Exception in thread "main" java.lang.illegalstateexception:The path to the driver executable must be set by the we driver.chrome.driver system property. Please help me in resolving this ?
@RaghavPal
@RaghavPal 4 года назад
Hi Dhanya, in Se 3 onwards we need to add browser driver exe file. This is explained in next tutorial
@dhanyanair5297
@dhanyanair5297 4 года назад
@@RaghavPal Thank you sir.. will download chrome driver.But I haven't installed maven in eclipse.Do we really need to do that to execute selenium pgms?
@RaghavPal
@RaghavPal 4 года назад
Hi Dhanya, not mandatory, but will be good if you create a maven project so maintenance will be easy later on. I have shown this from scratch in the Selenium Framework playlist. Check here - automationstepbystep.com/
@VetriJ
@VetriJ 6 лет назад
really good raghav.. keep it up
@RaghavPal
@RaghavPal 6 лет назад
thank for your message Vetri
@navaneethrao8264
@navaneethrao8264 2 года назад
From job perspective could you please let me know what and all I should be able to do using selenium tool opening browser is one thing
@RaghavPal
@RaghavPal 2 года назад
Hi Navaneeth, you should be able to design and develop automation framework using selenium, should be able to use the design principles like Page Object Model, how to structure the folders etc, How to handle different and common web actions
@kidsdhiyashow6366
@kidsdhiyashow6366 6 лет назад
which version of firefox is required because after running script firefox is opening but it is not entering url
@RaghavPal
@RaghavPal 6 лет назад
In this video i have used selenium 2.53 and firefox ver prior to 48. Now, you will need to get gecko driver . Check this - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-5N8GAn-bXnM.html
@itsmedimpy3625
@itsmedimpy3625 2 года назад
Thank You Bro, It Was Helpful.👈🏻👌🏻👍🏻👍🏻👍🏻
@RaghavPal
@RaghavPal 2 года назад
Most welcome
@armyfe2457
@armyfe2457 6 лет назад
thank u so much for your videos
@RaghavPal
@RaghavPal 6 лет назад
You're welcome Kavitha
@personalloanrakbank2737
@personalloanrakbank2737 7 лет назад
Hi, Ragav -' You are explained very well. I am really happy to Watch your presentation, do you provide any live program in Bangalore India, any training do you provide
@RaghavPal
@RaghavPal 7 лет назад
Hi, as of now do not provide any live trainings. Might do in future.
@ramakrishnaniyer6712
@ramakrishnaniyer6712 6 лет назад
Hi, I want to start learning Selenium but I’m not sure whether I should selenium using Java or Python. Which according to you is a better option, considering the future and the job market ?
@RaghavPal
@RaghavPal 6 лет назад
Hi Ramakrishnan, Selenium with Java has many jobs but is also very common, Selenium with Python is not very common and number of jobs will be less when compared to Java, I will suggest to start with Selenium with Java and once you get some intermediate level knowledge, try with python also. Its easy.
@user-ng2cj1sk6r
@user-ng2cj1sk6r 11 месяцев назад
Hi @raghav I am getting cannot find firebox binary in path could you please help?
@RaghavPal
@RaghavPal 11 месяцев назад
Hi Surjit The error message "Cannot find firefox binary in path" means that Selenium cannot find the Firefox executable file on your computer. This can happen for a few reasons: * You may not have Firefox installed on your computer. * The Firefox executable file may not be in your PATH environment variable. * The Firefox executable file may be corrupted or missing. To fix this error, you can try the following steps: 1. Make sure that Firefox is installed on your computer. You can download Firefox from the Mozilla website: www.mozilla.org/en-US/firefox/new/. 2. Check the PATH environment variable to make sure that it includes the path to the Firefox executable file. You can do this by opening a command prompt and typing the following command: ``` echo %PATH% ``` The output of this command should include the path to the Firefox executable file. If it does not, you can add the path to the Firefox executable file to the PATH environment variable. 3. Try restarting your computer and running your Selenium Java project again. If the error persists, you may need to reinstall Firefox. Here are some additional things to keep in mind: * The Firefox executable file is typically named `firefox.exe`. * The path to the Firefox executable file may vary depending on your operating system and installation settings. * You can also use the `-Dwebdriver.firefox.bin` command line argument to specify the path to the Firefox executable file. I hope this helps
@senthilvelchenniyappan3610
@senthilvelchenniyappan3610 Год назад
Bro it is very helpful. Thanks broiiii....😍
@RaghavPal
@RaghavPal Год назад
Most welcome Senthilvel
@faizahmedkhan3462
@faizahmedkhan3462 5 лет назад
Can you please help me what changes should i make if i want to test the same in Chrome browser instead of Firefox.? Please help. Thnx in advance
@RaghavPal
@RaghavPal 5 лет назад
Hi Faiz, I believe its covered in next video. Pls watch ru-vid.com/group/PLhW3qG5bs-L_s9HdC5zNshE5Ti8jABwlU
@AshrafAli-jc8fw
@AshrafAli-jc8fw 5 лет назад
Hi, I started to work on the above code and got an error during execution. Error was 'Unable to locate executable for jre1. 8.0_151' Can you please help..
@RaghavPal
@RaghavPal 5 лет назад
Hi Ashraf, have you set environment variable JAVA_HOME and added java in PATH. This video will help you Windows ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-FqpmH8MVO6A.html Mac ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-NSvtis2fGlA.html stackoverflow.com/questions/47512762/jmeter-wont-run-not-able-to-find-java-executable-or-version-please-check-your
@yamini8500
@yamini8500 4 года назад
Dear Raghav Sir, Followed the steps for pre-requisites in setup and ran the browser test but getting error as "java.lang.illegalException:The driver executable does not exist.The path has the C drive and then followed format. Any suggestions? Thanks!
@RaghavPal
@RaghavPal 4 года назад
Hi Yamini, Pls check the next video, you will need to add browser driver ee
@thiery572
@thiery572 7 лет назад
Great.
@hammadakhtar6313
@hammadakhtar6313 3 года назад
thanks for this tutorial, but I have found some issue after running this test, Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output: JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory. please reply what is the solution for this. thanks
@RaghavPal
@RaghavPal 3 года назад
Hi Hammad, you will need to add geckodriver, check the next video
@mohammadmansour9139
@mohammadmansour9139 6 лет назад
Dear thanks for the video but i got the following error when i applied the code for running FF org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output: can u help please? please note im not a developer
@RaghavPal
@RaghavPal 6 лет назад
Hi Mansour, looks like selenium and firefox have difficulty talking to each other. Just ensure if you are using Selenium ver 3.xx, Use firefox ver 48 or above.
@rizza.guevarra
@rizza.guevarra Год назад
Hi @6:52 i don't get the "Import WebDriver.." suggestion as quick fix..
@RaghavPal
@RaghavPal Год назад
Hi Rizza, Please check you have added the required libraries properly
@bindumadhavi1409
@bindumadhavi1409 5 лет назад
hello sir thanks for the video. But iam unablr to link to the actual url it is only opening firefox browser.. it is not opening the seleniumhq.org...?? please guide me how to link to url
@RaghavPal
@RaghavPal 5 лет назад
Hi Bindu, do you get any error or logs on the console. Looks like ver compatibility issue, If you are using firefox ver 47 or above and selenium 3 then you will have to use gecko driver. This is shown in next video- ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-5N8GAn-bXnM.html
@aswins360
@aswins360 3 года назад
Thank you very useful videos from your channel
@RaghavPal
@RaghavPal 3 года назад
You are welcome Aswin
@shripadangre3983
@shripadangre3983 5 лет назад
Hello Raghav, my script is just opening the browser but not visiting the URL, I also tried removing https and visiting a non secure URL but with no effect
@RaghavPal
@RaghavPal 5 лет назад
Hi Shripad, watch the next video, You will need to use gecko driver. Other selenium videos : automationstepbystep.com/selenium/
@harishanker3848
@harishanker3848 4 года назад
while running the code the browser gets opened but doesnt go to the target site and closes after the task can u please help me with this
@RaghavPal
@RaghavPal 4 года назад
Hi Hari, pls check the next video of this series. Most probably you are missing browser driver exe file.
@jishnupv1296
@jishnupv1296 4 года назад
@Automation Step by Step - Raghav Pal - Hi Raghav, when I'm running the program, browser is getting opened but the website is not filling in and also when I checked CONSOLE - I can see the below: Exception in thread "main" org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(C:\Program Files\Mozilla Firefox\firefox.exe) on port 7055; process output follows: JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory. Is there anything I need to do for a proper run of the code? Thanks in advance!
@RaghavPal
@RaghavPal 4 года назад
Hi Jishnu, if you are using Selenium 3, you will need to add the browser drivers. You can check later videos of this series to watch that Can find al here -automationstepbystep.com/
@jishnupv1296
@jishnupv1296 4 года назад
Thanks lot
@sagardawadi9208
@sagardawadi9208 5 лет назад
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox What is the exception Raghav sir ?
@RaghavPal
@RaghavPal 5 лет назад
Hi Sagar, you will need to use gecko driver. Check the next video of this series - ru-vid.com/group/PLhW3qG5bs-L_s9HdC5zNshE5Ti8jABwlU
@judithelemo
@judithelemo 3 года назад
Thank you for the tutorial. it is very explanatory. I am facing a challenge. I have written the program to open a browser as demonstrated above however, the firefox browser but does open but the website I specified.
@RaghavPal
@RaghavPal 3 года назад
Hi Judith, pls check the error, Also check the next video. Existing comments will also help you
@leigionyt115
@leigionyt115 5 лет назад
May or May not i get the help but stuck on illegalexecption, that i dnt get it to change, i did as same as tutorial. There is no import on hovering on web driver it just says change to and it does not solve it.
@RaghavPal
@RaghavPal 5 лет назад
Hi Rupak, pls check next video ru-vid.com/group/PLhW3qG5bs-L_s9HdC5zNshE5Ti8jABwlU
@user-zg6yk3fd7w
@user-zg6yk3fd7w Год назад
hi raghav sir, i have completed my soap ui /rest assured all classes and i run script except few which i don't hv access for website. also i run all postman classes . bu now, i am facing problem in runing 1st automation script. imy Firefox browser is going to get open but the issue is driver.get("link"); this link is not goint to get open and even if i use driver.quit (); this method is not going to get work. what to do ?
@RaghavPal
@RaghavPal Год назад
Hi Seeta, There could be several reasons why the driver.get() method is not working and the browser window is not opening. Here are some things you can try: Check if the URL is correct: Make sure that the URL you are passing to the driver.get() method is correct and valid. You can try opening the URL in a browser manually to ensure that it is working. Check if Firefox is installed: Make sure that you have Firefox installed on your system and that the correct version of the Firefox driver is being used. You can check the version of the Firefox driver by printing the value of the webdriver.gecko.driver system property. Check if the geckodriver executable is in the PATH: Make sure that the location of the geckodriver executable is included in the PATH environment variable. You can check this by running the geckodriver command in a command prompt or terminal window. If the command is not found, you need to add the location of the geckodriver executable to the PATH. Check if Firefox is configured to work with Selenium: Firefox needs to be configured to work with Selenium before it can be controlled by Selenium. You can do this by installing the selenium package and creating a Firefox profile that can be used by Selenium. You can also try setting the webdriver.firefox.bin system property to the path of the Firefox executable. Check if there are any errors in the console: If the browser window is not opening and the driver.get() method is not working, there may be errors in the console that can provide more information about the issue. You can check the console logs for any error messages that may indicate what went wrong. Try using a different browser: If Firefox is not working, you can try using a different browser, such as Chrome or Edge, to see if the issue persists. Check if there are any browser extensions that may be interfering with Selenium: Some browser extensions can interfere with Selenium and prevent it from working correctly. You can try disabling any extensions that may be causing issues to see if that resolves the problem. I hope these suggestions help you resolve the issue with your automation script
@sirbobbyuk
@sirbobbyuk Год назад
It was a good step-by-step process of setting up the first automation script using Selenium using Eclipse> however the issues it has been six years since this was done. And there have been some changes since. Just wondering if is there an updated version of this using selenium-standalone-server 4.x
@RaghavPal
@RaghavPal Год назад
Hi Robert Can check Selenium 4 playlist here - automationstepbystep.com/
@ridaakram4638
@ridaakram4638 5 лет назад
Hi Raghav, thanks for these videos, they are very informative. i have been trying to learn selenium but every time i get some error and had to stop the learning process bcz i stuck in loops. I've started watching your videos and again i have few errors, any help will be really appreciated. I've followed this tutorial and added the gecko driver successfully i guess. The browser loads but it's not going to the given URL. It shows some gray lines in the Firefox search bar(the cursor blinks in the search field which shows that the field requires input) and continuous opening the windows if i don't close them manually. so can you help me out ? how can i resolve this issue.
@ridaakram4638
@ridaakram4638 5 лет назад
This is my code: package MyFirstJavaProgram; import org.openqa.selenium.WebDriver; //import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.firefox.FirefoxDriver; public class firsttest { public static void main(String[] args) { System.setProperty("webdriver.gecko.driver" , "C:/Users/Anoosha/Documents/RIDA-WORK/important-work/eclipse workspace/MytestProjectSelenium/lib/geckodriver/geckodriver.exe"); //System.setProperty("webdriver.firefox.bin", "C:/Program Files/Mozilla Firefox"); WebDriver driver = new FirefoxDriver(); driver.get("seleniumhq.org/"); driver.close(); } }
@ridaakram4638
@ridaakram4638 5 лет назад
this is the error: 1563319629440 geckodriver INFO Listening on 127.0.0.1:23574 Jul 17, 2019 4:27:09 AM org.openqa.selenium.remote.ProtocolHandshake createSession INFO: Attempting bi-dialect session, assuming Postel's Law holds true on the remote end 1563319630422 mozprofile::profile INFO Using profile path C:\Users\Anoosha\AppData\Local\Temp ust_mozprofile.g4XjY1T24wBG 1563319630468 geckodriver::marionette INFO Starting browser C:\Program Files\Mozilla Firefox\firefox.exe 1563319630531 geckodriver::marionette INFO Connecting to Marionette on localhost:59184 1563319632303 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: mozillaAddons 1563319632303 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: telemetry 1563319632306 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: resource://pdf.js/ 1563319632307 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: about:reader* 1563319639584 Marionette INFO Listening on port 2828 JavaScript error: resource://activity-stream/lib/ActivityStreamPrefs.jsm, line 23: NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIPrefBranch.removeObserver] [Parent 3992, Gecko_IOThread] WARNING: pipe error: 109: file z:/task_1562361253/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 341 [Parent 3992, Gecko_IOThread] WARNING: pipe error: 109: file z:/task_1562361253/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 341 [Parent 3992, Gecko_IOThread] WARNING: pipe error: 109: file z:/task_1562361253/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 341 1563319644836 Marionette INFO Stopped listening on port 2828 ###!!! [Child][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost [GPU 7992, Chrome_ChildT ###!!! [Child][MessageChannel::SendAndWait] Error: Channel error: cannot send/recv
@ridaakram4638
@ridaakram4638 5 лет назад
plus can you please elaborate me this: The versions you have used in these videos are old now there are latest versions of firefox, selenium and geckodriver so if i'll use those will that be a problem? i just wanna complete my basic learning regarding it. i was trying to use the same versions you were using so that i wont get any problems but i have to use the latest versions in the end so help me out in this. Thanks in anticipation! i''m using firefox version 67.0.4. i've downloaded the same eclipse neon as u did and the same version of selenium + jars.
@RaghavPal
@RaghavPal 5 лет назад
HI Rida, pls check this - stackoverflow.com/questions/43570133/unable-to-launch-firefox-browser-from-selenium-webdriver-version-3-4-0 github.com/mozilla/geckodriver/issues/684
@LilysWorld-mu8mc
@LilysWorld-mu8mc 6 месяцев назад
Hi @raghav i am following the step by step tutorial 5 but getting java error (JNI), i checked the javac and java version both same but still getting this error, need your assistance. thanks
@RaghavPal
@RaghavPal 6 месяцев назад
Common Causes and Solutions: - 32-bit vs. 64-bit Mismatch: - Verify that your Java version and the application/library using JNI are both 32-bit or both 64-bit. - If mismatched, install matching versions. - Corrupted or Missing JNI Libraries: - Reinstall Java to ensure all JNI components are intact. - Incorrect PATH: - Ensure the directory containing JNI libraries (e.g., `JAVA_HOME/bin`) is in your system's PATH environment variable. - Conflicting Java Installations: - If multiple Java versions are installed, ensure your application is using the correct one. - Set JAVA_HOME environment variable to point to the desired installation. - Outdated or Incompatible Native Libraries: - Update any native libraries used by your application to ensure compatibility with your Java version. - Application-Specific Issues: - Consult documentation or support forums for the specific application or library causing the error.
@shlokii4866
@shlokii4866 3 года назад
Exception in thread "main" java.lang.Error: Unresolved compilation problems: WebDriver cannot be resolved to a type FirefoxDriverProvider cannot be resolved to a type at MyFirstJavaProject/test.firstseleniumtest.main(firstseleniumtest.java:10) i'm getting this error
@RaghavPal
@RaghavPal 3 года назад
Check 1 If you have added/imported all the correct libraries 2. Check your script syntax, spellings, spaces
@ishwaryabalasubramanian4844
@ishwaryabalasubramanian4844 3 года назад
Hi Raghav, I provide the URL, inspect the elements and perform operations with my browser set in 'English'. But, when i run my automated script, the browser is set in the language of my region and hence, the browser opens the URL but then fails saying it is unable to locate the element. So, I am not able to proceed with automating. Is there a way to make the automation script run in browser with English language by default? Thank you.
@RaghavPal
@RaghavPal 3 года назад
Hi Ishwarya,Selenium opens a new instance of the browser and does not takes the settings or plugins that you have on your default system browser. Check stackoverflow.com/questions/33220400/going-through-chrome-settings-by-selenium
@Bharathkumar-hv1cl
@Bharathkumar-hv1cl 3 года назад
Hi, I am unable to add external jars to the project. It greyed out, how can I resolve this
@RaghavPal
@RaghavPal 3 года назад
Hi Bharath, pls check this stackoverflow.com/questions/48491394/eclipse-in-the-libraries-tab-all-buttons-are-disabled
@kiransinghthakur8424
@kiransinghthakur8424 6 лет назад
hello sir , iam following you i have did the program and its executed bt its going to firefox but its not opening its site which i gave driver.get()
@RaghavPal
@RaghavPal 6 лет назад
Hi Kiran, send me your process and code to troubleshoot. What is the error you are getting.
@lipsarani3571
@lipsarani3571 7 лет назад
Hi Raghav Sir, i am doing the code properly, nothing seems wrong, but when i am running the code it is not doing anything. I am not getting any error, but it is not opening the seleniumhq website. please help
@RaghavPal
@RaghavPal 7 лет назад
Do you have main class in this code. How exactly are you running.
@ajaykumar-gz8df
@ajaykumar-gz8df 9 месяцев назад
Hi raghav, Your classes are very interesting I am facing one small Issue after adding the build path 2.53 version, I am unable to import the webdriver in the program can u tell me what I need to do ??
@RaghavPal
@RaghavPal 9 месяцев назад
Ajay To resolve the issue of not being able to import the WebDriver in your Selenium Java program on Eclipse IDE after adding the build path of version 2.53, you can try the following: 1. *Restart Eclipse.* 2. *Clean and build your project.* 3. *Check your pom.xml file to make sure that you have added the correct dependency for the WebDriver.* The dependency for the WebDriver in version 2.53 is as follows: ```xml org.seleniumhq.selenium selenium-java 4.5.3 ``` If you are using an older version of Eclipse, you may need to use the following dependency instead: ```xml org.seleniumhq.selenium selenium-java 3.141.59 ``` 4. *Make sure that the WebDriver JAR file is present in your project's build path.* You can check this by going to *Project* > *Properties* > *Java Build Path* > *Libraries*. The WebDriver JAR file should be listed under the *External JARs* tab. 5. *If you are still having problems, try importing the WebDriver class explicitly.* For example, instead of importing `import org.openqa.selenium.WebDriver;`, you can import `import org.openqa.selenium.firefox.FirefoxDriver;` or `import org.openqa.selenium.chrome.ChromeDriver;`, depending on the browser that you want to use. If you are still having problems, you can contact Selenium support for help. I hope this helps
@nitinkesarwani6434
@nitinkesarwani6434 7 лет назад
Hello Raghav sir, I am getting error message that Error: Could not find or load main class test.firstseleniumtest plz reply me and give the solution of this error.
@RaghavPal
@RaghavPal 7 лет назад
Hi Nitin, check if this helps - stackoverflow.com/questions/18093928/what-does-could-not-find-or-load-main-class-mean
@nilesh_lifts
@nilesh_lifts 4 года назад
Hi Raghav the code is working but I have a small issue regarding the link I want to open . The code opens the Firefox browser but it doesn't open the link in the web driver code. What should I do?
@RaghavPal
@RaghavPal 4 года назад
Hi Nilesh, have you added gecko driver exe. Check the next video
@zunairajaved9960
@zunairajaved9960 5 лет назад
After writing code, Firefox is opened but do not display any website. is there any issue with firefox drivers?
@JFresh1977
@JFresh1977 5 лет назад
Ok so I just went onto the next video where this part is run but with Selenium 3 drivers. With Selenium 3 drivers it works fine. So to anyone else that might be reading this just go onto the next video - it should be OK then.
@RaghavPal
@RaghavPal 5 лет назад
Hi Zunaira, you will have to use browser drivers. This is explained in next video
@armyfe2457
@armyfe2457 6 лет назад
can't we write selenium program in net beans if s old give me suggestions
@RaghavPal
@RaghavPal 6 лет назад
not tired on Net Beans
@geethugopi4659
@geethugopi4659 4 года назад
Hi Raghav , I have a doubt why do we add selenium standalone server jar.It will work well without adding this jar. From selenium official website I got selenium libraries and I'm adding this it will work well.Is the standalone server contain all the selinium jar file?
@RaghavPal
@RaghavPal 4 года назад
Hi Geethu, As of now you should be good with only the java jars
@geethugopi4659
@geethugopi4659 4 года назад
Thanks for your quick reply and you are doing a great job Raghav.
@sivamardana7787
@sivamardana7787 2 года назад
Cool explanation... Loved it
@RaghavPal
@RaghavPal 2 года назад
Glad you liked it Siva
@AshutoshMishra-qc7nl
@AshutoshMishra-qc7nl 4 года назад
Not sure why my browser opens but it doesnt goes to the URL and i get some error in eclipse about profiles also it does not quits too.
@RaghavPal
@RaghavPal 4 года назад
Hi Ashutosh, have you used browser drivers. Pls check the next video
@AshutoshMishra-qc7nl
@AshutoshMishra-qc7nl 4 года назад
@@RaghavPal yes thank you I got it working with the gecko drivers.
@testertest9683
@testertest9683 7 лет назад
Hello, I am getting a following error after running a program.(Window 7) org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output: ator":"Trend Micro","homepageURL":null} Plz help me..
@RaghavPal
@RaghavPal 7 лет назад
Hi, what version of selenium jar and what version of firefox are you using. If you are still using Selenium 2, you can start watching the next videos in the series to get started on Selenium 3. Let me know if you still face issue. reference - stackoverflow.com/questions/37693106/selenium-2-53-not-working-on-firefox-47/37728659#37728659
@Sunkual
@Sunkual 6 лет назад
HI, Raghav you videos very helpful, i need a clear explanation on this " webdriver driver= new firefoxdriver()", interviewer asked how to explain this in java, so i said this is object creation for webdriver to navigate browser, but still he said what is firefoxdriver(), i said default constructor of that class. so pls help on this particular line how to explain to interviewer
@RaghavPal
@RaghavPal 6 лет назад
Hi Sunku, i think he needs to know the object-oriented concept here. You can watch my java series to get some knowledge on that.
@chubbyman2564
@chubbyman2564 4 года назад
Ehm i need help, when i run the program, it only open the browser but didnt search the website i want to, any ideas?
@RaghavPal
@RaghavPal 4 года назад
Hi Axel, pls check the next video and also check video for Webdriver Manager ru-vid.com/group/PLhW3qG5bs-L_s9HdC5zNshE5Ti8jABwlU automationstepbystep.com/online-courses/
@sujalnawale2021
@sujalnawale2021 3 года назад
Hi Raghav, when i tried to execute first selenium program but some run error can u please help me about that below error- org.openqa.selenium.firefox.FirefoxDriver.toExecutor(FirefoxDriver.java:190) at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:147) at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:125) at test.FirstSeleniumTest.main(FirstSeleniumTest.java:11)
@RaghavPal
@RaghavPal 3 года назад
Hi Sujal, pls show complete logs. There will be a Caused By section, check that
@Shine-sq9rj
@Shine-sq9rj Год назад
Hello Mr. Raghav, I'm getting the console error when run the java project as: Error occurred during initialization of boot layer Java.lang.module.FindException: Module SeleniumTest not found
@RaghavPal
@RaghavPal Год назад
Hi Shine, This error message is indicating that the Java module named "SeleniumTest" can't be found Here are some possible reasons and solutions: Module is not on the module path: Ensure that the module is located in a directory that is on the module path. Incorrect module name: Check that the module name specified in the code is correct and matches the actual name of the module. Module is not a valid Java module: Ensure that the module is a valid Java module, i.e. it has a module-info.java file in its root directory and the file specifies the required dependencies. You can also try running the command jdeps --module-path --list-deps to check if there are any missing dependencies for the module.
@Shine-sq9rj
@Shine-sq9rj Год назад
@@RaghavPal Hey, Thank you Mr. Raghav. I tried with resetting all the path & setup from root. The error is not coming now. :D
@asadhaider1961
@asadhaider1961 3 года назад
Hello Raghav .. I followed this demo but I guess but driver.get is not working .. it opens firefox but doesn't move to the url I provide it .. how can I solve it ?
@RaghavPal
@RaghavPal 3 года назад
Hi Asad, check the version of geckodriver, it can be compatibility issue, use a diff ver
@03kannan
@03kannan Год назад
Hi Raghav, Your Automation videos are simply superb.. i see there is a membership channel , may i know what are the benefits of the membership.. i have a question- i have installed Eclipse and downloaded java and JDK , i am trying to configure JRE through buildpath, but the JRE folders and files is not visible under my project - may i know what is the issue
@RaghavPal
@RaghavPal Год назад
Memberships are for those who want to support my mission for Free education. Try to switch to package explorer
@ShivShankar-nq5qz
@ShivShankar-nq5qz 5 лет назад
Hi Ragav I have follow same steps as per this video but when I am run it, it open Firefox browser but its blank. Can you help me to resolve it. Thanks in adv.
@RaghavPal
@RaghavPal 5 лет назад
Hi Rutvik, mostly it will be issue with compatibility between selenium and browser driver. Have you added browser driver. Pls check the next video
@hemanshuruparelia1324
@hemanshuruparelia1324 6 лет назад
I am not getting any fixes of imports only 2 fixes which are create class and fix project setup Someone help plz
@RaghavPal
@RaghavPal 6 лет назад
Hi Hemanshu, pls re-check you have added all jars. I will suggest you create a maven project. Follow this - ru-vid.com/group/PLhW3qG5bs-L8oRay6qeS70vJYZ3SBQnFa p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Helvetica Neue'; color: #454545} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Helvetica Neue'; color: #e4af0a}
@testmusic23
@testmusic23 6 месяцев назад
Hello , I want to learn Selenium but I want to use Intelij Idea , it is a problem in using step by step your tutorial as I see you are using Eclipse?
@RaghavPal
@RaghavPal 6 месяцев назад
You can follow it, the steps, scripts, logic will all be the same
@svetlana_pustovaia
@svetlana_pustovaia 3 года назад
Hi, Raghav! Thanks for such lessons. In my view that is best on RU-vid. I've tried this lesson today. For some reason, the program opens the browser but doesn't open the site. Could you please give me a tip, what I need to do?
@RaghavPal
@RaghavPal 3 года назад
Hi Svetlana, most probably this may be due to mismatch in Se and browser ver. Try using latest versions
@sudehipatwari6610
@sudehipatwari6610 6 лет назад
I ran the code but it is just opening firefox. it is not searching for the given site. Is there any other package or somthing like gockodriver that I have to set up in eclipse ??
@RaghavPal
@RaghavPal 6 лет назад
On firefox ver 47 above you will have to use geckodriver exe. Its shown in subsequent videos
@sudehipatwari6610
@sudehipatwari6610 6 лет назад
yes it is working now ,I replaced standalone jar from selenium 2 to selenium 3 so now code is running. Thank you, your videos are really helping me a lot in learning selenium.thank you once again
@RaghavPal
@RaghavPal 6 лет назад
Great, keep learning.
@multitacts6795
@multitacts6795 Год назад
AWESOME EXPLANATION HERE YOU GOT NEW SUBSRIBER
@RaghavPal
@RaghavPal Год назад
Thanks a lot
@kalyanb2002
@kalyanb2002 6 лет назад
Great first session. Thanks
@kalyanb2002
@kalyanb2002 6 лет назад
Hey Raghav..how do i need to reach out to you as I have been facing few issues while running my first program to open a browser -google.com..
@RaghavPal
@RaghavPal 6 лет назад
Hi Nagakalyan You can put your queries in comments. I read all comments and will reply
@kalyanb2002
@kalyanb2002 6 лет назад
Raghav, I got the following issue when running my first program.. Starting ChromeDriver 2.23.409699 (49b0fa931cda1caad0ae15b7d1b68004acd05129) on port 5440 Only local connections are allowed. Exception in thread "main" org.openqa.selenium.WebDriverException: java.net.SocketException: Connection reset Build info: version: '3.12.0', revision: '7c6e0b3', time: '2018-05-08T15:15:03.216Z' System info: host: '63DDZ52', ip: '192.168.220.1', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_144' Driver info: driver.version: ChromeDriver at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:92) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:543) at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:207) at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:130) at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:181) at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:168) at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:123) at train.firstSeleniumProg.main(firstSeleniumProg.java:10) Caused by: java.net.SocketException: Connection reset at java.net.SocketInputStream.read(Unknown Source) at java.net.SocketInputStream.read(Unknown Source) at okio.Okio$2.read(Okio.java:139) at okio.AsyncTimeout$2.read(AsyncTimeout.java:237) at okio.RealBufferedSource.indexOf(RealBufferedSource.java:345) at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:217) at okhttp3.internal.http1.Http1Codec.readHeaderLine(Http1Codec.java:212) at okhttp3.internal.http1.Http1Codec.readResponseHeaders(Http1Codec.java:189) at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:88) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:125) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200) at okhttp3.RealCall.execute(RealCall.java:77) at org.openqa.selenium.remote.internal.OkHttpClient.execute(OkHttpClient.java:105) at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:101) at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:73) at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:136) at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83) ... 7 more I have used ChromeDriver class instead of Firefox as my firefox is out of date. I have added selenium for java (3.0). Browser opens but doesnt load google page look program below: package train; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; public class firstSeleniumProg { public static void main(String[] args) { // TODO Auto-generated method stub WebDriver driver=new ChromeDriver(); driver.get("google.com/"); } } created a new package "train"
@RaghavPal
@RaghavPal 6 лет назад
Looks like you will need to change version of chromedriver. Look here - stackoverflow.com/questions/48343769/selenium-shows-java-net-socketexception-connection-reset
@papacobbold
@papacobbold 4 года назад
Hi my version dosent allow me to create a package.Is there another way of doing this.Im new to this.Please help.
@RaghavPal
@RaghavPal 4 года назад
Hi Joseph, do you mean you cannot create a package in eclipse?. that should not be the case
@gauravchaurasiya6294
@gauravchaurasiya6294 3 года назад
Bhot shandar guru
@RaghavPal
@RaghavPal 3 года назад
Thanks for watching Gaurav
@studentgateway2314
@studentgateway2314 2 года назад
where can i find the tutorial for selenium+java cript
@RaghavPal
@RaghavPal 2 года назад
here - automationstepbystep.com/
@MDSAIF-cd8yx
@MDSAIF-cd8yx 4 года назад
Sir I am not getting the import options at webdriver, please suggest
@RaghavPal
@RaghavPal 4 года назад
Hi Saif, pls check if you have added the selenium jar. You can also create a maven project. Check this - ru-vid.com/group/PLhW3qG5bs-L8oRay6qeS70vJYZ3SBQnFa
@ushaparupally7132
@ushaparupally7132 6 лет назад
Hi Raghav, when im running my script, its getting terminated after specified url is opened in the browser..what might be reason?firefox version is 43.0.4
@RaghavPal
@RaghavPal 6 лет назад
Hi Usha, the issue is with Firefox ver. With Selenium 3+ ver you will need to use Firefox 48 or above and also use Gecko Driver to connect. This is explained in next video - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-5N8GAn-bXnM.html
@ushaparupally7132
@ushaparupally7132 6 лет назад
Automation Step by Step - Raghav Pal Okay Raghav.. Thank you
@ankitgupta0070reyansh
@ankitgupta0070reyansh 6 лет назад
Selenium test project start on android studio as well or not..??
@RaghavPal
@RaghavPal 6 лет назад
Hi Ankit, did not completely understood your query. What exactly are you trying to do here
Далее
Чистка пляжа с золотом
00:49
Просмотров 160 тыс.
Selenium Beginner Tutorial 2 - History of Selenium
12:00
Selenium Beginner Tutorial 7 - What is Gecko Driver
6:33