How to write Script in Selenium Webdriver (First Testcase in Selenium)

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ต.ค. 2024

ความคิดเห็น • 736

  • @Mukeshotwani
    @Mukeshotwani  10 ปีที่แล้ว +7

    Automate facebook registration page using Selenium webdriver

    • @rashedasger1295
      @rashedasger1295 8 ปีที่แล้ว

      Hello Mukesh... I cant find the external jar files ... can u give me a valid link for the jar files. Thanks

  • @saurabhgupta5686
    @saurabhgupta5686 3 ปีที่แล้ว +6

    Thanks mukesh for all your videos. I started learning automation from your videos only. It is so simple and clear. Easy to understand for the beginner. Now I lead the automation team , thanks for shaping my career.

    • @Mukeshotwani
      @Mukeshotwani  3 ปีที่แล้ว +1

      Thank you so much Gupta ji. keep learning and keep growing.

  • @pankajs987
    @pankajs987 8 ปีที่แล้ว +7

    Finally something meaningful! :) .. Took so much time to reach this video, clear voice, nice speed, perfect!
    Thank god I landed here!!

    • @Mukeshotwani
      @Mukeshotwani  8 ปีที่แล้ว

      Hey Pankaj glad to know it helped... Let me know if nay help required.

  • @iyerakhila123
    @iyerakhila123 5 ปีที่แล้ว +5

    Thank you so much! This was so helpful. Mukesh, if you have uploaded a series of such rel time testing, please share the link here. Thanks in advance

    • @Mukeshotwani
      @Mukeshotwani  5 ปีที่แล้ว +1

      Hi Akhila, thank you. I have planned many video for this series , will upload soon.

  • @sujalnawale2021
    @sujalnawale2021 4 ปีที่แล้ว +1

    Hi Mukesh,
    When am tried to execute first selenium program but am facing below error .can you help me fix this error.
    Exception in thread "main" java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system property;

    • @Mukeshotwani
      @Mukeshotwani  4 ปีที่แล้ว

      Hi Sujal, you need to download and provide path of Gecko driver here is the guide learn-automation.com/use-firefox-selenium-using-geckodriver-selenium-3/

  • @rajivrai5624
    @rajivrai5624 4 ปีที่แล้ว

    hi Mukesh, I am learning selenium,. As per you video dont you think to write all test case, it takes long time to execute ? I think its easy by doing manaully for the validation ? what do you say ??

  • @lifeindubaiwithtarang1804
    @lifeindubaiwithtarang1804 4 ปีที่แล้ว +1

    Hi Mukesh.in this reg page, if we enter invalid details for any fields and then click on submit,then error messages come besides each field like " enter valid mobile no or email address".how to capture this text as while clicking on inspect element n click on that highlighted error messages, it disappears n can't find any locators for this error message as can't inspect it.can you please help if possible.it will b great help

    • @Mukeshotwani
      @Mukeshotwani  4 ปีที่แล้ว

      Hi Jumi, you can follow below video where I have explained the same scenario th-cam.com/video/Lr-DsLLArtY/w-d-xo.html

  • @amzeenets3133
    @amzeenets3133 2 ปีที่แล้ว +1

    I am unable to correct libraries. I can see updated versions are not working. Please send your old java libraries to make the process. Thanks

    • @Mukeshotwani
      @Mukeshotwani  2 ปีที่แล้ว

      Please follow this th-cam.com/video/oo8hakhidQM/w-d-xo.html

  • @johnedil
    @johnedil 9 ปีที่แล้ว +8

    Excellente!!!. Could you share more videos How to write script in Selenium WebDrive, please.

    • @Mukeshotwani
      @Mukeshotwani  9 ปีที่แล้ว +3

      +John E. Ortiz Rendon Hi John yes I am planning more video will update soon till then refer some more video's on Selenium here is the Playlist
      th-cam.com/play/PL6flErFppaj2ArNxLyR4nQ4JV8qFc56-M.html

  • @GMK_Tech
    @GMK_Tech 4 ปีที่แล้ว +1

    Hello sir, how to add-on FireBug in FireFox Browser, i am not able to select firepath in FireFox . please help.

    • @Mukeshotwani
      @Mukeshotwani  4 ปีที่แล้ว

      Hi Gaous, please use ChroPath or default inspector of chrome. Firebug and Firepath does not exist anymore. Here is the video th-cam.com/video/kjTsGnkPQEc/w-d-xo.html

  • @MarinaBrunoFilms
    @MarinaBrunoFilms 7 ปีที่แล้ว +1

    Loved this video! Very helpful... Check out mine! I have different tips 😬

    • @Mukeshotwani
      @Mukeshotwani  7 ปีที่แล้ว +1

      Cool channel.. You got a new subscriber Marina..

    • @MarinaBrunoFilms
      @MarinaBrunoFilms 7 ปีที่แล้ว

      Mukesh otwani Thank you! Hope you enjoy my stuff :)

  • @phillipwong4283
    @phillipwong4283 9 ปีที่แล้ว +2

    Thanks, but I think you title need to be more focused.

  • @sagishorts2785
    @sagishorts2785 7 ปีที่แล้ว +6

    Hi, Mukesh. It is a great start for the beginners through your videos.Please let me know the order to follow your videos, it will be helpful from where to begin from Zero.Thank you

    • @Mukeshotwani
      @Mukeshotwani  7 ปีที่แล้ว +1

      Hi Sagi,
      Please follow them in below order
      learn-automation.com/selenium-webdriver-tutorial-for-beginners/

    • @sheetalcdesai
      @sheetalcdesai 5 ปีที่แล้ว

      @@Mukeshotwani I am getting a page not found error with this link . Please help - thanks

  • @A_philodendron
    @A_philodendron 4 ปีที่แล้ว +1

    Hi mukesh,
    I appreciate your effort. I have learnt selenium watching your vedios and recommended to my friends. But, now I was told to learn c# for one requirement and implement scripts using c#. I couldn't find vedios on that.can you please make vedios on c#?

    • @Mukeshotwani
      @Mukeshotwani  4 ปีที่แล้ว

      Hey Nikhitha thank you so much for recommending to friends. I have 2 videos on Selenium with C# as of now but will try to create more videos. If you are coming from JAVA to C# then it will be same almost
      th-cam.com/video/wtH4i7CPg1M/w-d-xo.html

    • @A_philodendron
      @A_philodendron 4 ปีที่แล้ว

      @@Mukeshotwani thanks mukesh

  • @niteshrawat576
    @niteshrawat576 6 ปีที่แล้ว +1

    Also please help me with knowing where is this selenium folder... All I have I selenium standalone jar file in my comp ,right?

  • @princetripathi7949
    @princetripathi7949 5 ปีที่แล้ว +2

    i love watching your videos they are always helpful..thanks

  • @neelambikalearnfun4041
    @neelambikalearnfun4041 4 ปีที่แล้ว +1

    Hi i have a application where we use multiple user id nd password. Currently when password expired script is failing. And we are manually updating the file then execute . Can you guide me to automate this manual activity. Means when there is change password screen my script will automatic reset it and save the password in a file.

    • @Mukeshotwani
      @Mukeshotwani  4 ปีที่แล้ว +1

      Hi Neelam you can write small condition using if else where if password expires then it should go to catch block and update the password.

    • @neelambikalearnfun4041
      @neelambikalearnfun4041 4 ปีที่แล้ว

      @@Mukeshotwani hi Mukesh thanks for reply.i did it. But i tried with hard-coded value. Wana to do it dynamic. As it is having old password,newpassword, confirm password field, got confuse how to do it. Then i thout new password we can generate from current date. And read the old password. But as am new to automation and not that gud in java so unable to proceed.

  • @satishchowdaryp
    @satishchowdaryp 6 ปีที่แล้ว +1

    firebug is not compatible with the current version of Mozilla. is there an alternative for the firebug to find the XPath. I able to find the XPath , but having an issue while proceeding with your code. Xpath is as follows (//*[@id="u_0_c"]). and the error is Multiple markers at this line
    - Syntax error on token "u_0_c", , expected

    • @Mukeshotwani
      @Mukeshotwani  6 ปีที่แล้ว

      Hi Sathish, Please use below video for Xpath th-cam.com/video/kjTsGnkPQEc/w-d-xo.html
      th-cam.com/video/9N7ERYWbjuw/w-d-xo.html

  • @gayatrikalegaonkar3787
    @gayatrikalegaonkar3787 2 ปีที่แล้ว +1

    hi sir I have one problem my browser driver does not connect with an editor or not redirect with drowser how to solve this problem

    • @Mukeshotwani
      @Mukeshotwani  2 ปีที่แล้ว

      You can use WebDriverManager if you have any issue with driver issue.th-cam.com/video/Pb8gsLeSOFo/w-d-xo.html

  • @jacjagan0319
    @jacjagan0319 6 ปีที่แล้ว +1

    Dear Mukesh, Thanks for your videos and is this playlist (84 ) videos covers full course or still more videos are there and in this playlist some videos (11 ,12 ,78,79,83,84) are not available. have you covered those videos in any other tutorial? what r the concepts r those unavailable. videos.please help me thanks in advance..

    • @Mukeshotwani
      @Mukeshotwani  6 ปีที่แล้ว

      Hi jac those are not related to Selenium.

  • @sahinparwin6398
    @sahinparwin6398 3 ปีที่แล้ว +1

    If I join membership perk than what benefits I will get.. Please let me know..

    • @Mukeshotwani
      @Mukeshotwani  3 ปีที่แล้ว

      Hi Sahin, as of now both are same. Join button is to support this channel.

  • @yamunabangaru9500
    @yamunabangaru9500 6 ปีที่แล้ว +4

    Thank you ! that helped me a lot and please use looping statements in the application that makes more clear about application automation.Worth watching video

    • @Mukeshotwani
      @Mukeshotwani  6 ปีที่แล้ว

      Hi Yamuna,
      I guess you are talking about Data Driven Framework learn-automation.com/data-driven-framework-in-selenium-webdriver/

  • @SS-kf9hp
    @SS-kf9hp 7 ปีที่แล้ว +1

    Hi Mukesh after watching java basic am watching this video.Hope am watching in sequence . If not correct me. Secondly I understood from basic java video that to create object we need to declare variable .For eg
    package class demo ;
    public class Firstclass Demo {
    int x=90;
    int y=100;
    public static void main(string []args){
    Firstclass Demo obj1 = new Firstclass Demo ();
    But here you used Select sell = new Select - how did you get this. please could you explain . Sorry I know this is silly doubt but am an amateur to code .

    • @Mukeshotwani
      @Mukeshotwani  7 ปีที่แล้ว

      Hi Suji,
      This will help to understand Select class in details
      learn-automation.com/handle-dropdown-in-selenium-webdriver/

  • @basmastikeliye6938
    @basmastikeliye6938 2 ปีที่แล้ว +1

    thanks for such a valuable videos

  • @__kenishhalani
    @__kenishhalani 4 ปีที่แล้ว +1

    hello sir im not able to open the login page of facebook using firefox please give a solution

    • @Mukeshotwani
      @Mukeshotwani  4 ปีที่แล้ว

      Hi Kenish, what error you are getting? Are you able to work on Chrome?
      Kindly use Gecko Driver to start with Firefox learn-automation.com/use-firefox-selenium-using-geckodriver-selenium-3/

  • @FactsYouLL
    @FactsYouLL 4 ปีที่แล้ว +3

    Thank you for this. :) want to learn more from you.

    • @Mukeshotwani
      @Mukeshotwani  4 ปีที่แล้ว

      Thanks Axell More to come!
      Here is the list of videos for Selenium th-cam.com/video/O1ZfEyR_iLw/w-d-xo.html

  • @shraddhakulkarni206
    @shraddhakulkarni206 5 ปีที่แล้ว

    Hello sir
    I have downloaded eclipse 4.11 version, selenium 3.141 and JDK 3.14 done that gecko statements also
    But I m not able to get output not

    • @techblogger6040
      @techblogger6040 4 ปีที่แล้ว

      Hi Shraddha, Please visit the video to resolve the errors th-cam.com/video/4D1tqgL_Yt4/w-d-xo.html

  • @talhachy3002
    @talhachy3002 6 ปีที่แล้ว

    Hi, I tried to run this program but it's not navigating page in facebook. It's giving me following message Exception in thread "main" java.lang.Error: Unresolved compilation problems:
    Webdriver cannot be resolved to a variable
    google drive cannot be resolved to a type
    driver cannot be resolved
    driver cannot be resolved
    Can anyone please tell me why this happening?

  • @IIViperr1
    @IIViperr1 5 ปีที่แล้ว +1

    Hi Mukesh loved the video, i subbed and liked the video
    was wondering if you knew how to use the @BeforeAll to load a sign in for a website so if i have multiple scenario's i want to run i dont have to duplicate my code for every test, instead i can use the @BeforeAll to preload the sign in function, i hope this makes sense thank you very much

    • @Mukeshotwani
      @Mukeshotwani  5 ปีที่แล้ว

      Hi Mate, You can follow my framework series where I discussed the same th-cam.com/video/vFXL4nMWvXI/w-d-xo.html

    • @Mukeshotwani
      @Mukeshotwani  5 ปีที่แล้ว

      Please subscribe to my channel for upcoming videos.

  • @sankhyadipchoudhury6886
    @sankhyadipchoudhury6886 6 ปีที่แล้ว +2

    from selenium 3.10 onwards we have to set path for gecko driver?

    • @Mukeshotwani
      @Mukeshotwani  6 ปีที่แล้ว

      Yes from Selenium 3 and if FF version above 47 then required Gecko Driver

  • @SP-ty5zw
    @SP-ty5zw 4 ปีที่แล้ว +1

    selenium is not auto importing when i am writing drivers...please help

    • @Mukeshotwani
      @Mukeshotwani  4 ปีที่แล้ว

      Hi Shiva here is the link for setting up th-cam.com/video/oo8hakhidQM/w-d-xo.html

  • @ishwaryaishu4048
    @ishwaryaishu4048 4 ปีที่แล้ว +1

    Super explanation easy to understand please update all selenium topics videos

  • @mahamriazkhan1355
    @mahamriazkhan1355 6 ปีที่แล้ว

    Hi Mukesh. I always follow your tutorials for automation.I am having i query while running selenium webdriver using fire fox. Exception is generated "org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output"
    My fire fox browser is invoking but URL is not passing in fire fox and this exception is generating.
    Firefox version: 59
    Selenium standalone jar files: 2.53 & 3.8.0 both
    JAVA SE= 1.8
    what i think is that, this is compatibility issue.kindly guide me how to solve this issue.

  • @manesh9369
    @manesh9369 6 ปีที่แล้ว

    Hi mukesh I have pasted same code in eclipse after copying geckodriver ..System.setProperty("webdriver.gecko.driver","C:/Users/maneeshpc/Desktop/java/geckodriver.exe");
    WebDriver driver=new FirefoxDriver();
    driver.get("www.google.com");
    driver.manage().window().maximize(); Now I am getting an error " Exception in thread "main" org.openqa.selenium.WebDriverException: java.net.ConnectException: Failed to connect to localhost/127.0.0.1:34091" Can you please help me?

  • @swapnabhaskaruni
    @swapnabhaskaruni 4 ปีที่แล้ว

    may I know why you did not use the statement System.setproperty here.
    Also i got ElementNotInteractable exception when i am trying to sendKeys to firstName textbox. how to deal with that

  • @ektaverma9737
    @ektaverma9737 7 ปีที่แล้ว +1

    Hi Mukesh,
    The videos are very effective, but had a doubt if the videos are in sequence. Could you please help me in getting the sequence of these videos, to learn selenium from scratch

    • @Mukeshotwani
      @Mukeshotwani  7 ปีที่แล้ว

      Hi Ekta,
      yes i will arrange soon. You can follow then in below order
      learn-automation.com/selenium-webdriver-tutorial-for-beginners/
      learn-automation.com/advance-selenium-webdriver-tutorials/

  • @Rajat-il6kp
    @Rajat-il6kp 7 ปีที่แล้ว

    Hi mukesh
    I'm not able to select dates from drop down list.
    Select day1=new Select(driver.findElement(By.xpath(".//*[@id='day']")));
    day1.selectByVisibleText("23");
    please guide me where I'm going wrong
    Thanks

  • @mashrufarpan8038
    @mashrufarpan8038 6 ปีที่แล้ว +2

    The dogs are barking :p
    anyways, nice video. Very helpful :)

    • @realtalks8970
      @realtalks8970 4 ปีที่แล้ว +2

      Yhi comment kb se dhund raha tha ;)

  • @girirajbhagat524
    @girirajbhagat524 6 ปีที่แล้ว +1

    Hello Mukesh,
    I just saw the documentation that Searching by XPaths is not supported though in the new Firefox Developer browser. Can we use anything else to get the elements by instead of XPaths?
    This link will help you out to understand what I am trying to say: developer.mozilla.org/en-US/docs/Tools/Migrating_from_Firebug

    • @Mukeshotwani
      @Mukeshotwani  6 ปีที่แล้ว

      Hi Giriraj Here is the Solution for Firefox th-cam.com/video/kjTsGnkPQEc/w-d-xo.html

    • @girirajbhagat524
      @girirajbhagat524 6 ปีที่แล้ว

      Thanks

  • @RAKESH-fk3yc
    @RAKESH-fk3yc 6 ปีที่แล้ว

    Hi Mukesh. i installed Ellipse and i downloaded selenium Server standalone Server 3.14.0 Version. i configured external external tools and i Run the external tools configuration. at that time im facing the error like "unable to Access selenium Server standalone 3.14.0 server jar. ".even i tried with selenium2.53.0 Version Also. what is that issue. can u please resolve My issue. and im using Eclipse Luna Version... Plz fix My issue Mukesh......

  • @2woSe7en
    @2woSe7en 11 หลายเดือนก่อน

    "Create a small web-based application by selecting relevant system environment /
    platform and programming languages. Narrate concise Test Plan consisting features to be tested
    and bug taxonomy. Narrate scripts in order to perform regression tests. Identify the bugs using
    Selenium WebDriver and IDE and generate test reports encompassing exploratory testing."
    can anyone please explain this problem statement or please give me the solution link of this statement

  • @chandrasekaranv8132
    @chandrasekaranv8132 6 ปีที่แล้ว

    HI,
    I am new to Selenium tool. It just load the URL and shows below Error Message.
    Exception in thread "main" org.openqa.selenium.WebDriverException: unknown error: cannot determine loading status
    from unknown error: missing or invalid 'entry.level'.
    how to resolve it please>

  • @nekkantivenkateswararao1386
    @nekkantivenkateswararao1386 4 ปีที่แล้ว +1

    Sir what is the alternative way of not writing system.set property,plze give the link

    • @Mukeshotwani
      @Mukeshotwani  4 ปีที่แล้ว

      Yes here is the video without setting driver start selenium
      th-cam.com/video/sTdXettm1y8/w-d-xo.html

    • @nekkantivenkateswararao1386
      @nekkantivenkateswararao1386 4 ปีที่แล้ว

      @@Mukeshotwani tanq sir

  • @MrPrabhukiran
    @MrPrabhukiran 7 ปีที่แล้ว

    Hi Mukesh,
    I am geting below error.
    java.lang.NoSuchMethodError: com.google.common.io.Closeables.closeQuietly(Ljava/io/Closeable;)V
    where i am using guava-r05.jar

  • @mrab2668
    @mrab2668 5 ปีที่แล้ว +1

    Please I want to communicate with you

  • @srujanraj374
    @srujanraj374 4 ปีที่แล้ว

    Why "WebDriver driver = new FirefoxDriver();" is written instead "FirefoxDriver driver = new FirefoxDriver();", can you please explain the reason, I know Python but I am new to Java

  • @PrettyMelody108
    @PrettyMelody108 5 ปีที่แล้ว

    Hello sir,
    In drop-down section you created multiple objects by using xpath, same script i wrote by using name or id but it doesn't work...what i do to run this process?...StaleElementReferenceException shows..

  • @vaishusep18
    @vaishusep18 4 ปีที่แล้ว

    Hi Mukesh,
    Seems firebug is removed from Firefox long back. Iam unable to install that add on now. Please suggest some alternative to that. Also tried with older versions of firefox but no use. Currently am using firefox version 55.0.3

  • @shamilis1927
    @shamilis1927 7 ปีที่แล้ว

    i use Firefox 56.0(32 bit).. Firebug/Firepath not working. Is there any other add-on to find WebElement. And Tell how to find xpaths using Inspect Element.

  • @thotajayaramdas2591
    @thotajayaramdas2591 6 ปีที่แล้ว

    Hi Mukesh, I am trying in alternate way i.e In PAYTM so that i can get trickets availability Information with out captcha.
    And i need help in writing code for PAytm Date only FRIDAYS.

  • @swaichhasrivastava1481
    @swaichhasrivastava1481 6 ปีที่แล้ว

    Hi Mukesh ,excellent video , i tried using the above coding ,and error i am getting as import org.openqa.selenium.WebDriver - here i am getting error as this import is accessible from more than one module htmlunit.driver, org.apache.commons.lang3 ..how to resolve this ?

  • @JChat13
    @JChat13 7 ปีที่แล้ว +1

    Using the same code ! Firefox browser is not getting maximized using maximize function ! BDW thanks a lot ! this was much helpful !

    • @Mukeshotwani
      @Mukeshotwani  7 ปีที่แล้ว

      Hi Joy,
      Which version of Selenium you are using ? try with 3.4.0

  • @rohitsinha858
    @rohitsinha858 6 ปีที่แล้ว

    Hi Mukesh..nice video...Just want to know in new firefox version browser there is no more firebug and firepath is present. So for me its difficult to automate my application. Can you please help me out how to get back firebug and firepath??

  • @MaknunKhan
    @MaknunKhan 3 ปีที่แล้ว

    Thanks brother your tutorial is excellent . keep making tutorial brother your video will help us .Thanks

  • @praveenmalviya4234
    @praveenmalviya4234 4 ปีที่แล้ว +1

    Hello.... First of all thank you for such a nice videos. It helps a lot for new techi and professionals. I need a help to run test case using jenkins in linux machine. please let me know how can i reach you.
    Thanks

    • @Mukeshotwani
      @Mukeshotwani  4 ปีที่แล้ว

      Hi Praveen, thank you for nice comment. You can use Zalenium which create run time container for execution and you can integrate with Jenkins th-cam.com/video/PEjUCkNft7s/w-d-xo.html

  • @anasen276
    @anasen276 4 ปีที่แล้ว

    Hi I have installed mozilla firefox in my system.But I am getting errors when I try to run the code in firefox.The same code is running successfully in google chrome.Could you please help me to use firefox also?Is there any specific installation to use firefox?

  • @pooja2080
    @pooja2080 7 ปีที่แล้ว

    Hi Mukesh. Firefox browser seems to get launched but it does not proceed after that. Also the program comment says "terminated at" and shows the line number which contains the Web driver driver = new ffdriver line. Please help !

  • @sasivlogs1935
    @sasivlogs1935 6 ปีที่แล้ว +1

    I'm just started learning selenium.... before proceeding with code .. what are the things need to install like server.. etc....
    please provide your inputs

    • @Mukeshotwani
      @Mukeshotwani  6 ปีที่แล้ว

      Hi sasi, you just need Java installed, Eclipse and Latest selenium jar file.

  • @AshishSharma-jm9kt
    @AshishSharma-jm9kt 10 ปีที่แล้ว +1

    helpful video for beginners..Thanks Mukesh

  • @sagar7267
    @sagar7267 6 ปีที่แล้ว

    Nice and clear explanation......but there's lot of background noise...it would be helpful if you can remove it..(just a suggestion)

  • @SS-kf9hp
    @SS-kf9hp 7 ปีที่แล้ว +3

    Hi Mukesh only problem am facing is sequence of videos . As a beginner I dont know what to watch next. Have you uploaded any videos with isdisplayed () isselected ()

    • @Mukeshotwani
      @Mukeshotwani  7 ปีที่แล้ว

      Hi Suji,
      Kindly follow below link
      learn-automation.com/selenium-webdriver-tutorial-for-beginners/

  • @shreyassharmaShreyas
    @shreyassharmaShreyas 7 ปีที่แล้ว +1

    Hi Mukesh.. Firefox only not opening..I am getting error like this.. Exception in thread "main" java.lang.IllegalStateException: Already configured necessary jar files.. Please help me

    • @Mukeshotwani
      @Mukeshotwani  7 ปีที่แล้ว

      HI Shreyas this will help learn-automation.com/use-firefox-selenium-using-geckodriver-selenium-3/

    • @mohammedmajid7926
      @mohammedmajid7926 7 ปีที่แล้ว +2

      Download the geckodriver from the below URL and Put this code. It will remove this exception and run the code.
      github.com/mozilla/geckodriver/releases
      System.setProperty("webdriver.gecko.driver", "C:\\geckodriver-v0.18.0-win64\\geckodriver.exe");
      Complete code snapshot
      public static void main(String[] args) {
      // TODO Auto-generated method stub
      System.setProperty("webdriver.gecko.driver", "C:\\geckodriver-v0.18.0-win64\\geckodriver.exe");
      WebDriver demoDriver = new FirefoxDriver();
      demoDriver.get("www.facebook.com");
      //demoDriver.manage().window().maximize();
      demoDriver.findElement(By.xpath(".//*[@id='u_0_2']")).sendKeys("User1");
      Select sel1 = new Select(demoDriver.findElement(By.xpath(".//*[@id='month']")));
      sel1.selectByIndex(2);

      System.out.println("Done");
      }

  • @neilmcfeely671
    @neilmcfeely671 4 ปีที่แล้ว +1

    Hey i did all the above, but after it automates login, it dont reconize my email

    • @Mukeshotwani
      @Mukeshotwani  4 ปีที่แล้ว

      Hey Neil, sorry I did not understand your question what do you mean by "it dont reconize my email"? Can you provide more details so that I can guide accordingly.

    • @neilmcfeely671
      @neilmcfeely671 4 ปีที่แล้ว

      @@Mukeshotwani have you an email address

  • @Ga-ku5hk
    @Ga-ku5hk 6 ปีที่แล้ว

    Hi Mukesh, I am getting a blank error pop up with just red close sign when i am trying to execute this script. The same is with firefox as well. Can you please help.

  • @ankitsharma2320
    @ankitsharma2320 4 ปีที่แล้ว

    Hello sir
    This video is very helpful, sir can you teach me how to find bugs in any web application or mobile application. Or you can make a video for how find bug it was very help for us.
    Thank you

  • @NehaSingh-mc3os
    @NehaSingh-mc3os 3 ปีที่แล้ว +1

    Sir i want to join your course ,plz share ur email

    • @Mukeshotwani
      @Mukeshotwani  3 ปีที่แล้ว

      Hi Neha it's mukeshotwani@learn-automation.com

  • @pubggaminghindurashtra4013
    @pubggaminghindurashtra4013 6 ปีที่แล้ว +1

    i was trying the same way but its asking me to pass system property but i have seen u just added web driver.firefox it worked can you help me plz

    • @Mukeshotwani
      @Mukeshotwani  6 ปีที่แล้ว

      HI Bharat, You have use set Gecko Driver in new version of Selenium and Firefox learn-automation.com/use-firefox-selenium-using-geckodriver-selenium-3/

  • @garysmith208
    @garysmith208 7 ปีที่แล้ว +2

    Exactly what I was looking for. Thank you very much.

    • @Mukeshotwani
      @Mukeshotwani  7 ปีที่แล้ว

      Glad to hear that Gary :) Keep watching.

  • @nidakhurasani147
    @nidakhurasani147 6 ปีที่แล้ว

    Hi mukesh, i have written the same code as urs but for me the drops downs are not working. The drop downs are showing some default value...can u plzzz suggest what is wrong

  • @swethareddy474
    @swethareddy474 6 ปีที่แล้ว

    Hello Mukesh
    I have downloaded fire path and firebug but i'm unable to find Xpath box, could you please help me out.
    Thank you

  • @nirmalrawtani4961
    @nirmalrawtani4961 3 ปีที่แล้ว +1

    very helpful.. thanks for uploading

    • @Mukeshotwani
      @Mukeshotwani  3 ปีที่แล้ว

      Hey Nirmal, I am Glad it was helpful!

  • @igpYT
    @igpYT 3 ปีที่แล้ว

    Hi Mukesh
    What to Do when a Mouse Hover Tab have Drop Down options and We have to Click on one option of it. Can you make one video on that So how to Automate Mouse Hover and do a Click after that.

  • @divyagupta6029
    @divyagupta6029 6 ปีที่แล้ว

    Hi sir, i have one question,when i write code Select sel1= new select() its not show automatically select as class ,and when i select import file as web element in new select(web-but its show null value) its show null,could please help me how to write this code.

  • @8143555102177
    @8143555102177 6 ปีที่แล้ว +1

    Hello Sir, I see you are not using setproperty to set the path of the webdriver. Could you please tell me how are you handling it?

    • @Mukeshotwani
      @Mukeshotwani  6 ปีที่แล้ว

      Hi Chaitanya, This video is 4 years old that time no gecko driver was there.

  • @vintagegarage786
    @vintagegarage786 3 ปีที่แล้ว +1

    very good video of understanding for beginner..

    • @Mukeshotwani
      @Mukeshotwani  3 ปีที่แล้ว

      Glad to hear that Thanks Zubaer

  • @856shaileshkumar
    @856shaileshkumar 6 ปีที่แล้ว +1

    At 0:57 , you can hear some dog barking !

  • @HaaDiEntertainment
    @HaaDiEntertainment 11 หลายเดือนก่อน +1

    dogs are barking, i cant make attention to the topic

    • @Mukeshotwani
      @Mukeshotwani  11 หลายเดือนก่อน

      I agree sir, I recorded this when I was new on TH-cam. Do you need fresh video on the same, I can record the same again.

  • @sumamanikanta4934
    @sumamanikanta4934 6 ปีที่แล้ว

    While automating the gmail login page I am unable to enter the text in the password field.It is showing error like unable to locate element .(getting mosuchelementexception)can you please help me in resolving this issue

  • @renumadhavan5104
    @renumadhavan5104 6 ปีที่แล้ว +1

    Awesome explanation on how to write the code. Excellent video. Am a fresher want to learn Selenium.Keep posting more videos in selenium. very helpful. Great job :)

    • @Mukeshotwani
      @Mukeshotwani  6 ปีที่แล้ว

      Sure Renu I will do for sure..

  • @rakeshyadav1186
    @rakeshyadav1186 4 ปีที่แล้ว +1

    Hi Mukesh can you help me why I am getting this error.." editor does not contain a main type error in eclipse"

    • @Mukeshotwani
      @Mukeshotwani  4 ปีที่แล้ว

      Hi Rakesh please check below video for installation th-cam.com/video/oo8hakhidQM/w-d-xo.html

  • @shaiksameena7603
    @shaiksameena7603 6 ปีที่แล้ว +1

    There is drop-down box inside 6 values are there. If condition 1 is true it will execute some fields like that remains fields but I'm using for loop to retrieve the vales. Here I'm facing an issue I'm sending values through Excel if I'm sending 3rd value it is executing which will come first . please help me to select particular value

    • @Mukeshotwani
      @Mukeshotwani  6 ปีที่แล้ว

      Hi Sameena,
      You need to debug your code and check the same. Below video will explain the same
      th-cam.com/video/rXXeHfvbddo/w-d-xo.html

    • @shaiksameena7603
      @shaiksameena7603 6 ปีที่แล้ว

      Thank you so much for your response . And I have a doubt iam retrieving values from Excel . I'm saving integer values while retrieving iam getting float values for ex 24 iam saving it returning as like 24.0. please help me on this

  • @nagasri3664
    @nagasri3664 2 ปีที่แล้ว +1

    I saw many videos but little confused... Finally this video helped me tq...

  • @shefalishah1955
    @shefalishah1955 6 ปีที่แล้ว +1

    Awesome video Mukesh.. Especially it is very helpful for beginner. Thank you :)

    • @Mukeshotwani
      @Mukeshotwani  6 ปีที่แล้ว

      +shefali shah Thanks Shefali let me know if any help required from my side.
      Happy Weekend

  • @dilipkumars6556
    @dilipkumars6556 3 ปีที่แล้ว +1

    Sir the browser is getting open but it not taking the script mean when i write the same script shown above it's not getting filled in login spaces

    • @Mukeshotwani
      @Mukeshotwani  3 ปีที่แล้ว

      which browser u r using and what exception it is giving?

    • @dilipkumars6556
      @dilipkumars6556 3 ปีที่แล้ว

      @@Mukeshotwani sir I'm using firefox browser and I was trying to send text but its not getting filled

    • @dilipkumars6556
      @dilipkumars6556 3 ปีที่แล้ว

      @@Mukeshotwani sir when I send some keys to name field in chrome it's accepting but when I send it in firefox it's not taking

    • @dilipkumars6556
      @dilipkumars6556 3 ปีที่แล้ว

      @@Mukeshotwani sir please do reply I'm unable to move forward to further tutorial I'm stuck

  • @Introvert_Explorer791
    @Introvert_Explorer791 3 ปีที่แล้ว

    but now fb page is different for me how can I get idk its not invoking its finding unique elements but not writing automatically passwrd

  • @judahrobinson818
    @judahrobinson818 7 ปีที่แล้ว

    how to automate the code program itself...
    for exMple : if v use multiple application, and for that need to generate an automatic code (prgm)

  • @parul9934
    @parul9934 5 ปีที่แล้ว +1

    Hi mukesh , my Facebook page gets opened now i was trying to click notification , home,create but its not working. Please help

    • @Mukeshotwani
      @Mukeshotwani  5 ปีที่แล้ว

      Hi Parul Try this learn-automation.com/disable-chrome-notifications-selenium-webdriver/

    • @parul9934
      @parul9934 5 ปีที่แล้ว

      @@Mukeshotwani thanks problem was due to notification alert . Solved now 👍

  • @dsudhamani9945
    @dsudhamani9945 4 ปีที่แล้ว +1

    if u will show the testcases and test script in testng

    • @Mukeshotwani
      @Mukeshotwani  4 ปีที่แล้ว

      Here is the link th-cam.com/play/PL6flErFppaj0mMumHnkXddfd2nL45WV7S.html

  • @bongtube1983
    @bongtube1983 6 ปีที่แล้ว +1

    Hi, I am trying to write script in chrome browser and generate the x-path without using firebug. Can you please direct me to the related tutorial if there is any?

    • @Mukeshotwani
      @Mukeshotwani  6 ปีที่แล้ว

      HI ABhi,
      You can follow below post learn-automation.com/xpath-checker-for-chrome-browser/

    • @bongtube1983
      @bongtube1983 6 ปีที่แล้ว

      Thanks Mukesh!

  • @rajumallik1784
    @rajumallik1784 5 ปีที่แล้ว

    sir in the company ,as a test engineer i have to write the selenium script in eclipse itself???or there have some different tools in company............ans pls

  • @bhupendrabisht1296
    @bhupendrabisht1296 7 ปีที่แล้ว +1

    thanks mukesh, pls let me know how to find xpath in others browser like internet explorer or chrome...

    • @Mukeshotwani
      @Mukeshotwani  7 ปีที่แล้ว +1

      Hi Bhupendra this will help th-cam.com/video/sxNZ0dfg4OQ/w-d-xo.html

  • @kamabrapa88
    @kamabrapa88 6 ปีที่แล้ว

    I liked the video but had to stop half-way. The barking wouldn't let me concentrate!

  • @anwar8135
    @anwar8135 6 ปีที่แล้ว +2

    Hi mukesh,
    Im new to selenium.just started with your first test script.
    have configured selenium 3.14.0 in my system and using the same for your test script.
    But im stuck in error saying that the "SendKeysAction" is deprecated .
    Can you please help on this.?

    • @Mukeshotwani
      @Mukeshotwani  6 ปีที่แล้ว +1

      Hi Anwar, Can you send your code I will check mukeshotwani@learn-automation.com

  • @jashanpreetkaur1677
    @jashanpreetkaur1677 6 ปีที่แล้ว +1

    Hi mukesh ...i jusy run from opening the browser to maximise it ,but it is giving me error - Type mismatch:cannot convert from chromeDriver to webdriver,the method get(),manage() is undefined for the type webdriver...Could you please help as i am new to selenium..please?

    • @Mukeshotwani
      @Mukeshotwani  6 ปีที่แล้ว

      Can you paste your code I will check

    • @jashanpreetkaur1677
      @jashanpreetkaur1677 6 ปีที่แล้ว

      package Webdriver;
      import org.openqa.selenium.WebDriver;
      import org.openqa.selenium.firefox.FirefoxDriver;
      public class Facebook {
      public static void main(String[] args) {
      WebDriver driver = new FirefoxDriver();
      driver.get("facebook.com/");
      driver.manage().window().maximize();
      }
      }
      Error:Exception in thread "main" java.lang.Error: Unresolved compilation problems:
      Type mismatch: cannot convert from FirefoxDriver to WebDriver
      The method get(String) is undefined for the type WebDriver
      The method manage() is undefined for the type WebDriver
      at Webdriver.Facebook.main(Facebook.java:11)

    • @jashanpreetkaur1677
      @jashanpreetkaur1677 6 ปีที่แล้ว

      Could you please me in this?

    • @jashanpreetkaur1677
      @jashanpreetkaur1677 6 ปีที่แล้ว +1

      Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkState(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V
      at org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:125)
      at org.openqa.selenium.chrome.ChromeDriverService.access$000(ChromeDriverService.java:35)
      at org.openqa.selenium.chrome.ChromeDriverService$Builder.findDefaultExecutable(ChromeDriverService.java:156)
      at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:346)
      at org.openqa.selenium.chrome.ChromeDriverService.createDefaultService(ChromeDriverService.java:91)
      at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:123)
      at File1.Late.main(Late.java:8)

    • @jashanpreetkaur1677
      @jashanpreetkaur1677 6 ปีที่แล้ว

      Could you please reply?

  • @shivnandan8171
    @shivnandan8171 4 ปีที่แล้ว

    I think Firefox now is not used by default and rather you need Gecko driver to run it on the firefox.Please clear this.

  • @saudagergrocers6893
    @saudagergrocers6893 6 ปีที่แล้ว +1

    nice explaination !! but first throw those dogs a bone they are literally annoying :P

    • @Mukeshotwani
      @Mukeshotwani  6 ปีที่แล้ว

      Thanks Saudagar.. Yes I know they are annoying . Actually it was my first video 4 years back.. In new videos you will not find it... 😀

  • @thotajayaramdas2591
    @thotajayaramdas2591 6 ปีที่แล้ว

    Hi Mukesh, This is jayaram actually u have done a great job for sharing knowledge ond making people easy to learn and work.
    And i am automating IRCTC site in selenium but i am unable to inspect "CAPTCHA" is there any solution for than and plz help me to automate IRCTC site.
    Thanks and waiting for your reply.

  • @mutbahirhussain3825
    @mutbahirhussain3825 3 ปีที่แล้ว

    package Shah;
    import org.openqa.selenium.WebDriver;
    import org.openqa.selenium.chorome.ChoromeDriver;
    public class rida {
    public static void main(String[] args) {


    WebDriver driver = new ChoromeDriver();

    driver.get("www.facebook.com");
    driver.manage().windows().maximize();

    }
    }
    I just copy your code as it is but it shows me an error

    • @KuldeepKumar-et2vc
      @KuldeepKumar-et2vc 3 ปีที่แล้ว +1

      Add this statement before : WebDriver driver = new ChromeDriver();
      System.setProperty("webdriver.chrome.driver","");

  • @atulughade
    @atulughade 3 ปีที่แล้ว

    hi mukesh did you having any video of signup and verify mail fetch otp from mail and entered it to signup page. thanks

  • @jatinsingh77
    @jatinsingh77 4 ปีที่แล้ว +1

    mukesh can u help my browser is open but did not take the driver.get command please help

    • @Mukeshotwani
      @Mukeshotwani  4 ปีที่แล้ว

      Hi Jatin, what issue or exception is getting?
      Please share details to mukeshotwani@learn-automation.com

    • @jatinsingh77
      @jatinsingh77 4 ปีที่แล้ว +1

      Mukesh otwani please check ur mail I have send u the screen shot with it

    • @Mukeshotwani
      @Mukeshotwani  4 ปีที่แล้ว +1

      replied

    • @jatinsingh77
      @jatinsingh77 4 ปีที่แล้ว

      Mukesh otwani Hey Mukesh please check ur mail I have sent u all the versions information Thank u for ur guidance