How to Handle Dropdown in Selenium webdriver

Поделиться
HTML-код
  • Опубликовано: 25 ноя 2024

Комментарии • 223

  • @mustafak9954
    @mustafak9954 4 года назад +7

    I have paid $400 for Udemy to learn online and they couldn't explain this drop-down thing at all , it sucked but you made it look so easy ... Just superb 👌

    • @Mukeshotwani
      @Mukeshotwani  4 года назад +4

      Hey Mustafa, I am very glad to read this comment from you. Thank you

    • @neetigoyal9075
      @neetigoyal9075 4 года назад +2

      @@Mukeshotwani Totally Agree with Mustafa

    • @lilchief2823
      @lilchief2823 3 года назад

      this is one drop down. there is like 3-4 different kinds. the best way is to manual test first and then do automation.

    • @monicagoyal8225
      @monicagoyal8225 2 года назад

      I too have paid to Udemy but have learnt most of the concepts of Java and Selenium following Mukesh Sir's video.Thanks alot.

  • @dfwguy03
    @dfwguy03 7 лет назад +1

    Mukesh! I always though automation was hard and i would never be able to learn it, specially by coding. But your method of teaching has proved me wrong! Thank you so much for sharing the knowledge. Keep up the good work! :)
    Here is what I wrote and it worked like a charm:
    Select monthdd = new Select (driver.findElement(By.id("month")));
    monthdd.selectByIndex(2);
    Select daydd = new Select (driver.findElement(By.id("day")));
    daydd.selectByIndex(28);

    • @Mukeshotwani
      @Mukeshotwani  7 лет назад

      Cheers Man :) Happy weekend. Keep learning.

  • @chriswokes4393
    @chriswokes4393 7 лет назад +1

    last few months i am following your videos it helped me

  • @vikrantsingh6638
    @vikrantsingh6638 7 лет назад

    Bro...your videos and explanation is crisp and clear...very nice tutorials

  • @vaishalipatil3364
    @vaishalipatil3364 5 лет назад +5

    How to handle dropdown in selenium using tag in HTML

    • @Mukeshotwani
      @Mukeshotwani  5 лет назад

      HI Vaishali here is the link learn-automation.com/handle-bootstrap-dropdown-in-selenium-webdriver/

  • @sourabhson
    @sourabhson 6 лет назад

    Thank You Mukesh. It's all videos very helpful for me. from beginning to expert level Thank's a lot mukesh.

  • @shibiyazhini8692
    @shibiyazhini8692 8 лет назад

    Hi Mukesh, Simply Awesome.... Easy to catch the points...And now very clear in such concepts.... Thank You...

    • @Mukeshotwani
      @Mukeshotwani  8 лет назад

      Hey Shibi I am glad it helped you. Keep visiting.

  • @zainubbehl5946
    @zainubbehl5946 8 лет назад

    Hi, Mukesh , you cleared so many points in this tutorial and that too with detail explanations. Thanks.

    • @Mukeshotwani
      @Mukeshotwani  8 лет назад

      Hi Zainub, I am glad it helped you.

  • @krishnareddy9981
    @krishnareddy9981 7 лет назад +1

    I'm impressed with your way of teaching.Even Non-it guys also can understand easily Good Job

    • @Mukeshotwani
      @Mukeshotwani  7 лет назад +1

      Thanks Krishna :) I am glad it helped you.

  • @AnjaliJayasheel
    @AnjaliJayasheel 2 месяца назад +1

    Hi Mukesh, How to select all dropdown values from class 'oxd-select-text oxd-select-text--active'

    • @Mukeshotwani
      @Mukeshotwani  2 месяца назад

      Hi Anjali,
      You can click on dropdown then fetch all the values and use loop to iterate. I am attaching the sampple code.
      You can also check google autocomplete scenario which will give some idea about same ruclips.net/video/iNkIXVgHXZM/видео.html
      // Find the dropdown element and click to expand
      WebElement dropdown = driver.findElement(By.className("oxd-select-text--active"));
      dropdown.click();
      or
      WebElement dropdown = driver.findElement(By.xpath("//*[contains(@class,'select-text--active')]"));
      dropdown.click();
      // Wait for the dropdown options to be visible
      List options = driver.findElements(By.xpath(""))
      // Loop through each option and perform actions (e.g., printing or clicking)
      for (WebElement option : options)
      {
      System.out.println("Dropdown option: " + option.getText());
      // You can also click on each option to select it
      // option.click();
      }

  • @ritikatamboli2451
    @ritikatamboli2451 7 лет назад +4

    ur lectures r too good,,i request u sir to plz arrange them in a sequence,,so that it will be more nd more helpful for all,,

    • @Mukeshotwani
      @Mukeshotwani  7 лет назад +1

      Hi Ritika,
      You can follow them in below order
      learn-automation.com/selenium-webdriver-tutorial-for-beginners/

  • @prajaktajadhav4429
    @prajaktajadhav4429 3 года назад +2

    Where is part 2 of this video where in you have explained the 2nd one i.e handling drop-down without select tag..pls provide the link . Didn't you take the same example which you demonstrated here

  • @najibassaadi5598
    @najibassaadi5598 4 года назад +1

    Thanks for the great explanation! I wish you the best!

  • @jagulakshmipavani5629
    @jagulakshmipavani5629 8 лет назад

    Hi Mukesh,the way you explain is really excellent...good job

  • @nirushrivastava3018
    @nirushrivastava3018 8 лет назад

    Thanx Mukesh!! ur tutorial helping me a lot in learning Automation.

    • @Mukeshotwani
      @Mukeshotwani  8 лет назад

      +Niru Shrivastava Your most welcome Niru keep visiting and let me know if any help required from my side

  • @ashokbabu6775
    @ashokbabu6775 8 лет назад

    Hi mukesh your explanation and videos superb keep it up,i will learn lot of things.
    Thanks

  • @shankarcheerala3089
    @shankarcheerala3089 7 лет назад +1

    Very Good Explanation. Thanks Mukesh...!

    • @Mukeshotwani
      @Mukeshotwani  7 лет назад

      Hey Shankar I am glad you liked my videos. Keep visiting and let me know if any help required from my side.

    • @shankarcheerala3089
      @shankarcheerala3089 7 лет назад

      Sure Mukesh. I am going through all the videos and I will let you know if I need any help

  • @stanu1159
    @stanu1159 6 лет назад

    Tq sir u teaching is too good

  • @abhinandansk6599
    @abhinandansk6599 8 лет назад

    easily understood the topic .. :) thanks Mukesh ...

  • @ItsMeSimna
    @ItsMeSimna 6 лет назад +1

    I really liked the way of teaching!!thanks a lot

    • @Mukeshotwani
      @Mukeshotwani  6 лет назад

      Thanks Simna 🙏🙏 keep learning more videos are coming on Test Automation

  • @kareembasha9351
    @kareembasha9351 5 лет назад +2

    thank you soo much sir.

    • @Mukeshotwani
      @Mukeshotwani  5 лет назад

      Hi Kareem, I am happy it helped you.

  • @LucasRibeiro
    @LucasRibeiro 8 лет назад

    Nice video Mukesh! Thank you!

    • @Mukeshotwani
      @Mukeshotwani  8 лет назад +1

      +Lucas Ribeiro Welcome Lucas keep visiting.

  • @raveenabirua3380
    @raveenabirua3380 6 лет назад +1

    Ur videos are really very helpful. Thanks for ur great effort. Please guide me with assertion

    • @Mukeshotwani
      @Mukeshotwani  6 лет назад

      Hi Raveena, What issues you have with Assertion? I have 2 videos on Assertion on RUclips. Please have a look and let me know if you still have doubt.
      Here are the quick link for both videos
      Hard Assert- ruclips.net/video/dvUPSnGQZCM/видео.html
      Soft Assert - ruclips.net/video/JJygt4XCLBo/видео.html

    • @raveenabirua3380
      @raveenabirua3380 6 лет назад

      Mukesh otwani ok.. Mukesh. I wil refer them and let u know if i have any issues

  • @FinAgno
    @FinAgno 7 лет назад +1

    You are a lifesaver! Thanks a lot!

    • @Mukeshotwani
      @Mukeshotwani  7 лет назад

      Hey Otso :) Thanks.. Happy holidays..

  • @muhammadshahnawaz9953
    @muhammadshahnawaz9953 3 года назад +1

    Thanks mukesh.

  • @Dee-oi8jl
    @Dee-oi8jl 4 года назад

    Hi Mukesh, I really like the way you are teaching, May in know how to verify go to one drop down(select with for loop) to another drop down(select with for loop) and add value in the text box and remove value from last text box and again go to 2nd drop down and select value and go to 3 next text box and add value and remove value (i have tried so many way but its not working if you can, can you please help me with this)

  • @dhanrajdk8905
    @dhanrajdk8905 8 лет назад

    Hi Mukesh,the way you explain is really really good.. am following your videos it's really awesome, your way of teaching is awesome. can you explain jdbc connection.

    • @Mukeshotwani
      @Mukeshotwani  8 лет назад

      Thank you Dhanraj :) You can check JDBC here ruclips.net/video/CjNqKlTluxc/видео.html

  • @ashishnangia3679
    @ashishnangia3679 8 лет назад +1

    Great Stuff Mukesh, these videos really helping me in learning selenium

  • @abhisingh4939
    @abhisingh4939 7 лет назад

    Hello mukesh i am working on manual testing got good knowledge on core java recently... wanna go in selenium .... what pprtions of java i should concentrate to improve my selenium . This will be very helpful for me

  • @dineshreddymallela
    @dineshreddymallela 6 лет назад

    As you mentioned in video there is another scenario if we have div tag can you let me know where can i find video with div tag

  • @alexalex2343
    @alexalex2343 3 года назад

    HI Mukesh, This video is very helpful for me. Thanks for this video.
    There is one drop down and in which having the colors(style="background-color: rgb(186, 182, 182);) so I am not able to handle this dynamically. Even dont have text of colors in tag. can you please help me to sort out this?
    Here Im not able to attach any screenshot.

  • @mannuhunasigi
    @mannuhunasigi 6 лет назад

    Hi Mukesh.. Need a help.. As you have mentioned in the video for Gmail application. the dropdown we need to select and display is using div tag. Pls let me know whether u have video for that..I have an application where i need to select and display dropdown by using input and div tag..Need to traverse from start to end by writing dynamic xpath

  • @udoeze2186
    @udoeze2186 7 лет назад

    Hi Mukesh, a BIG thank you for these videos! You're really gifted in teaching. I created the expected list of vales, stored them in an array list, but still cannot code correctly the assertion part. Please could you share the code for the assertion part? Thanks!!!

  • @deekshithb5459
    @deekshithb5459 5 лет назад

    Hi Mukesh in this video u told that you will make extension video for this tutorial but where is that one.

  • @rockyrockstar1386
    @rockyrockstar1386 6 лет назад

    Hi. Mukesh can u plz suggest me how to handle kendo dropdown

  • @viveksharma338
    @viveksharma338 8 лет назад

    Hi Mukesh, following your videos very seriously, its excellent and very helpful. Can you please help me with the Assert Code ??

    • @Mukeshotwani
      @Mukeshotwani  8 лет назад

      Hey vivek ruclips.net/video/JJygt4XCLBo/видео.html

  • @gayatrimungarwadi390
    @gayatrimungarwadi390 5 лет назад

    @mukesh how to handle search and select type of dropdown values?

  • @devendradeore1940
    @devendradeore1940 6 лет назад

    Hi Mukesh, Can you please guide how to select a random value from drop down.Thank you

  • @SanthoshFabre
    @SanthoshFabre 7 лет назад

    Hi mukesh is there any video showcasing the same using Python and xpath selecting from an IE alone drop down list..

  • @mitu14888
    @mitu14888 7 лет назад +2

    Hi Mukesh,
    I am fresher for selenium. your videos are very helpful to me.
    but
    I requested to you,please arrange sequence wise video playlist.
    because there are confusion for new selenium learner. When u have done video for "how to work with multiple browser", then next video is play for "how to handle dropdown".
    In this video you are using TestNg, but you didn't explain how to use TestNg and directly you used @Test keyword before public void method.
    So please arrange sequence wise playlist. It is better for all.

    • @Mukeshotwani
      @Mukeshotwani  7 лет назад

      Hi Mittal,
      You can follow the videos in below sequence
      learn-automation.com/selenium-webdriver-tutorial-for-beginners/
      Don’t forget to subscribe my RUclips Channel

    • @mitu14888
      @mitu14888 7 лет назад

      Thank you...Mukesh

  • @RohitSingh-Jaat
    @RohitSingh-Jaat 6 лет назад

    Hi Mukesh, I thank you from the bottom of the heart for the detailed tutorials in selenium. The information is very detailed and top class. I have one small query when I copy paste the class like you like facebookdropdown to facebookdropdown 2 then edit second class (facebookdropdown 2) then the content of the main class is also overwritten. Then both files have the same code. Can you please update where I'm doing wrong. Thanks in advance.

  • @ritikaarora5290
    @ritikaarora5290 7 лет назад

    Hi Mukesh! Thanks for the videos.
    I just saw your video on how to handle dropdown using selenium. program runs successfully but it is selecting different values from the one i passed in the find element property and there is no error in the console.
    Can you tell me what could be the possible problem?

  • @ingriddbrito4003
    @ingriddbrito4003 7 лет назад

    HI Mukesh, thank for this video.
    When I put ´Select month_dd = new Select(month_dropdown);´ I got this error message ´Cannot instantiate the type Select´. I inclued all the packages needed, but it is still not working. Could you please help me with this question? Thanks!

  • @sachinjaiswal9054
    @sachinjaiswal9054 6 лет назад

    Mukesh in which tutorial have you discussed handling of dropdown coming under "Div" tag ??

  • @johndoe-lz8fo
    @johndoe-lz8fo 4 года назад

    what is the dropdown disappears before you can inspect it? like on amazon?

  • @banuyaswanth8061
    @banuyaswanth8061 3 года назад +1

    please could you help me... to print even numbered years in a dropdown... if u know please upload one video regarding that

    • @Mukeshotwani
      @Mukeshotwani  3 года назад

      Hey Banu, you can use getOptions() which will return List of WebElement then you can use logic for even or add or any other logic.

  • @bharathitk3264
    @bharathitk3264 7 лет назад

    Hi Mukesh, Please Share the code for expected list of values and store in List.
    Thanks for your help

  • @SaurabhTiwari-qy2bu
    @SaurabhTiwari-qy2bu 7 лет назад

    Hi,
    I want to select the value from drop down which will be the sorted value of price from low to high and display it.How can I do this.Please help.

  • @testerauto315
    @testerauto315 7 лет назад

    can i save the value of drop down after selecting it, like month_dd.SelectByIndex(3) here,
    i.e. afterselectvalue= month_dd.SelectByIndex("12"); and then printing SOS(afterselectvalue.getfirstselectedoption();)

  • @rakeshjha7475
    @rakeshjha7475 7 лет назад +1

    Its work for me. Thanks @Mukesh

  • @arshdeepkaur2860
    @arshdeepkaur2860 6 лет назад

    Hi Mukesh, I couldn't find your video for handling drop-downs with div tags. All the content I am trying to automate is under div tags. There is no li or select tags.

  • @abhishekmukherjee9865
    @abhishekmukherjee9865 3 года назад

    How to handle dropdown when the element is present in nested . Pls let me know

  • @kanchankumar7304
    @kanchankumar7304 6 лет назад

    Detailed and easy to understand lectures. Thank you to provide these all.
    can you provide me the code to compare the list of expected and actual ? I tried by my own but stuck in between.

    • @kanchankumar7304
      @kanchankumar7304 6 лет назад +1

      I got solution, below piece of code i have added to your code (SelectFacebookDropdown3) to test if the list is matching. But not sure if this is correct or what. please check and give me feedback.
      ArrayList expected_day=new ArrayList();
      expected_day.add("1");
      expected_day.add("2");
      expected_day.add("3");
      expected_day.add("4");
      expected_day.add("5");
      Assert.assertEquals(day_list, expected_day);

    • @Mukeshotwani
      @Mukeshotwani  6 лет назад

      That's Great kanchan I will check and provide feedback

    • @kanchankumar7304
      @kanchankumar7304 6 лет назад

      sure, i will be waiting for your feedback. Thank you !!

  • @sandeepsan71
    @sandeepsan71 6 лет назад

    hi mukesh, can u tell how to select the drop down like the one you mention in gmail link (3:45 - 3:50)

  • @fathima9716
    @fathima9716 4 года назад +1

    Hi Mukesh, Im wondering how is your script working without setting system.set property?

    • @Mukeshotwani
      @Mukeshotwani  4 года назад +1

      Hey Fathima, yes you can do that by setting path of driver in environment variable
      ruclips.net/video/sTdXettm1y8/видео.html

    • @fathima9716
      @fathima9716 4 года назад

      Thanks for letting me know

  • @nabilferhoune9293
    @nabilferhoune9293 3 года назад

    think you for video,i have probem when the page facebook open ,a dialog page opens to accept cookies,what i can i do (i use chrome)thinks

  • @8143555102177
    @8143555102177 6 лет назад

    Hello Sir!! could you please explain the line no - 21
    WebElement month_dropdown = driver.findElement(By.id("month"));
    Did I get it correct if I say we are assigning an object that we get from "driver.findElement(By.id("month"))" to month_dropdown which is of type WebElement interface?

  • @Bell4Fun
    @Bell4Fun 6 лет назад

    Nicely Explained :-P

  • @vasukirajagopal2601
    @vasukirajagopal2601 6 лет назад

    Hi Mukesh,Thanks for the excellent explanation.
    i have a requirement where i need to test 2 drop downs where drop down2 will get refreshed based on drop down1 value.How can we check if drop down 2 has no value for the chosen dropdown1 value.I understand that we can handle this scenario in java list.size(),but do we have an option in selenium for this scenario.

  • @Testiniwuu
    @Testiniwuu 7 лет назад

    Hi can you please help in to select value in dropdown list through excel sheet actually i am trying but i am not able to do it since i want use if else condition with it, its not working as it should.

  • @gilsonsouza8159
    @gilsonsouza8159 3 года назад

    Hi, I have a question regarding Selenium.
    let's say that I am using selenium to create a routine automation instead of an test automation.
    And this routine will help not just me but others colleagues also. These colleagues don't know anything about programming. So I wish I could create some "desktop application".
    like an icon that they just click on it and the script will run. Without need of the Eclipse IDE or anything else.
    The point is that the webdriver follow a path, and this path is from my computer. also, there is a file, and the path if from my user. so I not sure on how to do it
    Can you help with that? I appreciate, thank you so much.
    If you know some other way, it is not necessary to be a desk app, could be online, on a server, I don't know.

  • @anubhutisaxena3435
    @anubhutisaxena3435 6 лет назад

    How to automate searching any keyword on webpage. Say I search "data" on any page and verify that all get highlighted and count for that

  • @ajinkyapawar3440
    @ajinkyapawar3440 5 лет назад

    Hi Mukesh,
    How to select multiple items in selected dropdown .
    ex one dropdown country and we have to select two country i.e. India and China at one time is this possible????

  • @vaidehipatil506
    @vaidehipatil506 6 лет назад

    Hi Mukesh,
    Thanks for the video. I'm beginner in Automation. Could you please explain me why you didn't set any property for FirefoxDriver in this program ? Whenever I create new project or new class its trowing me an error. Please explain me. Thanks in Advance

  • @harishl4881
    @harishl4881 6 лет назад

    Hi Mukesh,
    I have doubt, if a dynamic dropdown consist of repeated values like {2,1,3,4,2,1,8,9,7,2}
    if i select a value then at index 2 it should be 1.How do write a code for that?

  • @Bell4Fun
    @Bell4Fun 6 лет назад

    In this example 1 if I chose to have following code
    month_dd.selectByIndex(2);
    month_dd.selectByValue("2");
    if both code return same results then what is the difference between selectByIndex and selectByValue?
    or
    I am missing something ...

  • @goldfinger1528
    @goldfinger1528 5 лет назад

    Thank you, makes so much sense. A question though- how do you handle cases where other elements obscure the dropdown?

  • @ankittiwari9040
    @ankittiwari9040 4 года назад

    Hi Sir, first of all great video,
    Can you please explain
    WebElement month_dropdown =driver.findElement(By.id(“month”); syntax. I didn’t understand why are you giving this.

  • @victorcarrilloTV
    @victorcarrilloTV 7 лет назад

    Hi Mukesh, Good Day,
    I was wondering :
    -Why do we have to use the annotation for this example?
    -Why when I follow up with your in your video, when trying to import the package for testNG the only one I have is the one for JUnit?(Does it make that much of a difference anyway)
    I'm new in automation and I'm working my way up there :)

  • @bibhasdebbarman2800
    @bibhasdebbarman2800 6 лет назад +1

    Hi Mukesh,
    Thanks for sharing this awesome videos. Please guide me how can I use drop down selection in POM?

    • @Mukeshotwani
      @Mukeshotwani  6 лет назад

      Hi Bibhas,
      you can use something like below
      public void statusDropDownList(int index) {
      Select drop = new Select(status);
      drop.selectByIndex(index);
      }

    • @bibhasdebbarman2800
      @bibhasdebbarman2800 6 лет назад

      Thanks Mukesh...

  • @saraswathiperamsetty6829
    @saraswathiperamsetty6829 4 года назад +1

    And could you please make a video for how to login gmail in c# using Selenium.

  • @alinrabbi2468
    @alinrabbi2468 4 года назад

    Awesome

  • @shreyajain9439
    @shreyajain9439 6 лет назад

    Hi Mukesh,
    Can you please tell how to select value from autocomplete drop down in selenium.
    Thanks in advance:)

  • @jakealainbachiller9961
    @jakealainbachiller9961 7 лет назад

    Question. In real time. is the List of values supposed to be in Excel? or is it okay to just validate it with array list?

  • @chetanbhardwaj8620
    @chetanbhardwaj8620 7 лет назад +1

    Hi Mukesh , your explanations are really nice and I need to know how to select dropdown value if we have div tag and Select UI does not seem working . Kindly help me out.

    • @Mukeshotwani
      @Mukeshotwani  7 лет назад

      Hi Chetan,
      here is the link for the same learn-automation.com/handle-bootstrap-dropdown-in-selenium-webdriver/

  • @TheNitfitnat
    @TheNitfitnat 7 лет назад +1

    Hi Mukesh,
    Can you please suggest me how to select value from searchable dropdown list(list appears when we type something)?

    • @Mukeshotwani
      @Mukeshotwani  7 лет назад

      Hi, yes it is called autocomplete I will sure make video on this..

  • @divyacm5004
    @divyacm5004 3 года назад

    Hi Sir, After selecting, I'm trying to deselect same, selection is working but deselect is throwing expection like below. Please guide me.
    Code: WebElement Year =driver.findElement(By.cssSelector("select[id='year']"));
    Select Year1=new Select(Year);
    Year1.selectByVisibleText("1995");
    System.out.println(Year1);
    Thread.sleep(3000);
    Year1.deselectByVisibleText("1995");
    System.out.println(Year1);
    Expection : java.lang.UnsupportedOperationException: You may only deselect options of a multi-select

  • @Zack-ni3vz
    @Zack-ni3vz 4 года назад +1

    Can you please show us, how to automate a date-picker?

    • @Mukeshotwani
      @Mukeshotwani  4 года назад

      Hey Mate, I already have video and article on this. Please check this learn-automation.com/handle-calender-in-selenium-webdriver/

    • @Zack-ni3vz
      @Zack-ni3vz 4 года назад

      @@Mukeshotwani I saw your video. thanks for the link. I am using python right now. Is it the same coding used? im guessing no

  • @nehakannegulla4065
    @nehakannegulla4065 4 года назад +1

    Is there any tutorials on assert for verifying whether the test is passed?

    • @Mukeshotwani
      @Mukeshotwani  4 года назад

      Yes Neha, we have soft assert and assert class in testng which will help you to perform assertion.
      Here is the link ruclips.net/video/dvUPSnGQZCM/видео.html

    • @Mukeshotwani
      @Mukeshotwani  4 года назад

      Soft assertions link ruclips.net/video/JJygt4XCLBo/видео.html

  • @shahrubanshabipk7585
    @shahrubanshabipk7585 7 лет назад

    sir at end of video how use assert ? i m unable find the solution.. pls help

  • @anmolkumar5381
    @anmolkumar5381 7 лет назад

    Hi Mukesh, Can you please provide me the code for validation just for checking i am doing it in correct way or not.
    Thanks in Advance and by the way you are doing a great job thank you man.

  • @Hahntech
    @Hahntech 6 лет назад

    Make sure your recording is done at the proper volume. The audio in this video is barely audible even when volume is turned to max.

  • @harshinisuryamuthukrishnan4822
    @harshinisuryamuthukrishnan4822 4 года назад +1

    how do u do the dropdown with div type of codes?

    • @Mukeshotwani
      @Mukeshotwani  4 года назад

      here is the link learn-automation.com/handle-bootstrap-dropdown-in-selenium-webdriver/

    • @harshinisuryamuthukrishnan4822
      @harshinisuryamuthukrishnan4822 4 года назад

      @@Mukeshotwani hey i tried that ..still i dont have /a and a href to navigate to another page in my inspect

  • @mukeshkumar-bt1dt
    @mukeshkumar-bt1dt 7 лет назад

    Hi Mukesh ,
    how we can handle the dropdown which is there in Gmail sign up page (Birthday,Gender) i am trying to do it via select it not working that way .you have talked about it in video at(4:14).
    please help thanks !!

  • @chauhanrahul155
    @chauhanrahul155 4 года назад +1

    i am not able to get run as java application option.What should I do?

    • @Mukeshotwani
      @Mukeshotwani  4 года назад

      Hi Rahul please share screenshot and in order to get Java Application option you need main method in your program

  • @ramsurya8813
    @ramsurya8813 7 лет назад +1

    thanks mukesh bhai i have doubt on selenium installation .errors came every time and import files are not generated .annotations are not generated

    • @Mukeshotwani
      @Mukeshotwani  7 лет назад

      Sorry Ramu I did not get you. What is your requirement?

  • @curious6899
    @curious6899 4 года назад +1

    (1) In a drop-down where you can only select one option from and the drop-down is coded using DIV or SPAN tags (NOT the Select tag). How to click a drop-down option there ? (2) How to achieve that goal using Actions class ?

    • @Mukeshotwani
      @Mukeshotwani  4 года назад +1

      Here is the video for Dropdown without Select tag ruclips.net/video/eMLXegqvuwU/видео.html

    • @curious6899
      @curious6899 4 года назад

      @@Mukeshotwani Thanks Mukesh.. Not sure if we can perform the same task using Actions class - any idea ?

  • @bajishaik429
    @bajishaik429 5 лет назад +1

    Hi Mukesh,
    Could you please tell me "how to validate unique text value for particular field by using selenium??? for example, while registering Gmail we have to provide our unique gmail Id. like the same for validating such a field what the code required?? I hope you got the point. Please suggest me Mukesh or any one knows tell me....

    • @Mukeshotwani
      @Mukeshotwani  5 лет назад

      Hi Shaik, Please use Assert Class for validation.

  • @swethagowda21
    @swethagowda21 8 лет назад

    Hi Mukesh ,I liked the way you are teaching . I was not able to find the video where you have shown example for facebook.com for different type of select drop down ,Can you provide the link please

    • @Mukeshotwani
      @Mukeshotwani  8 лет назад

      Hi Swetha that video is in playlist.

  • @bakciii
    @bakciii 7 лет назад +1

    Hi, Mukesh can you please answer my question (Hi Mukesh, Nice work.I have learned so much from you. Thanks. I have a question regarding Multiple dropdowns. Do I need to Create an everytime Select class for more than one dropdown ? or is there any code, that I can call them?Example: Facebook "Month-Day-Year")

    • @Mukeshotwani
      @Mukeshotwani  7 лет назад

      Hi Shahed you can create reusable method which will accept only webelement and which value you want to Select.

  • @chriswokes4393
    @chriswokes4393 7 лет назад +1

    hi Sir
    Goodevening
    how handle dropdown with out using select class

    • @Mukeshotwani
      @Mukeshotwani  7 лет назад

      Yes Chris here is the link for same learn-automation.com/handle-bootstrap-dropdown-in-selenium-webdriver/

  • @devanand7714
    @devanand7714 6 лет назад +1

    At 08:31 u have used Web Element so what is the use if this and why it is used. Is it a return type for - driver.findElement(By.Id("month"));

    • @Mukeshotwani
      @Mukeshotwani  6 лет назад

      Hey Anand code driver.findElement(By.Id("month")); will return WebElement which we use in Select Class

  • @AmitSingh-pz3ji
    @AmitSingh-pz3ji 6 лет назад

    i m not able to execute the test case affter instaling the Test NG ... COuld you please help me in that

    • @Bell4Fun
      @Bell4Fun 6 лет назад

      I suggest Use @Test else share the Message you receive

  • @mosharofsujan4381
    @mosharofsujan4381 6 лет назад +1

    Hi Mukesh, videos are so helpful. I have a problem to enter value in text field or select month from drop down to automate Facebook Account open page while i using "driver.manage().window().maximize();" .

    • @Mukeshotwani
      @Mukeshotwani  6 лет назад +1

      Hi Sujan, Can you please tell me what exception log you are getting ? Try also driver.manage().window().fullScreen(); method

  • @studywithroshan3179
    @studywithroshan3179 4 года назад +1

    Sir how to handle kendoDropDownList using selenium

    • @Mukeshotwani
      @Mukeshotwani  4 года назад

      Hi Mate, if you have any other dropdown apart from Select tag then you can follow below approach.
      It is applicable for Bootstrap, KendoDropDown and Angular JS dropdown as well
      ruclips.net/video/eMLXegqvuwU/видео.html

    • @studywithroshan3179
      @studywithroshan3179 4 года назад

      @@Mukeshotwani Thanks sir

  • @seemakaushal2212
    @seemakaushal2212 5 лет назад +1

    what if the html tag is not select, you mentioned in the begining of the vid, but didnot t al about it in the vid

    • @Mukeshotwani
      @Mukeshotwani  5 лет назад +1

      Here is the video Seema ruclips.net/video/eMLXegqvuwU/видео.html

    • @seemakaushal2212
      @seemakaushal2212 5 лет назад

      @@Mukeshotwani Thanks

  • @sheshu207
    @sheshu207 8 лет назад +1

    Hi, Why can't we just use driver.findElement(By.id("month")).sendKeys("Jul"); to select the month?
    will this cause any issue?

    • @Mukeshotwani
      @Mukeshotwani  8 лет назад +1

      This also will work for selecting values.

    • @RamaKrishna-gg7zu
      @RamaKrishna-gg7zu 4 года назад

      This is hardcoding....not a good practice

  • @QaVarsha
    @QaVarsha 7 лет назад

    Hi Mukesh,
    why we have to use this all method?
    when we can simply select values from dropdown using -
    driver.findElement(By.xpath(".//*[@id='BirthMonth']/div")).sendKeys("May");
    driver.findElement(By.xpath(".//*[@id='BirthDay']")).sendKeys("21");
    driver.findElement(By.xpath(".//*[@id='BirthYear']")).sendKeys("1989");

  • @LikhithReddy
    @LikhithReddy 8 лет назад

    Hi Mukesh, thanks for the wonderful content and i have one doubt
    *Im getting assertion error while comaring ListofWebelements(actual) with Arraylist(expected).*
    can u help me with this
    Thanks once again.

    • @Mukeshotwani
      @Mukeshotwani  8 лет назад +1

      Hi Likhith, for comparison make sure both should be in same format. I mean both should be in ArrayList format.

  • @nagarekapalli7145
    @nagarekapalli7145 8 лет назад

    Hi Mukesh,
    When I'm trying to run the program, I can't see the TestNG option. As you said I did imported org.testng.annotations.Test by writing @Test in the program but still I didn't get that option. Please help me with this
    Thanks in advance

    • @Mukeshotwani
      @Mukeshotwani  8 лет назад

      HI Naga,
      Kindly install TestNG from marketplace learn-automation.com/how-to-install-testng-in-eclipse/