How To Handle Dynamic Web Table In Selenium WebDriver | Capture Dynamic WebTable In Selenium

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ส.ค. 2021
  • In this video, I will discuss how to handle dynamic web table in Selenium webdriver and how to verify the table data as well.
    XPath In Selenium Part 1 and Part 2
    • Dynamic XPath in Selen...
    • How to create Dynamic ...
    TestNG Tutorials
    • Testng Tutorial for Be...
    Assert in TestNG
    • How to use Assertion i...
    All Playlist
    / mukeshotwani
    Connect with us:
    Linkedin- / mukesh-otwani-93631b99
    Instagram- / mukeshotwani
    Facebook Group- / 256655817858291
    Facebook Page- / seleniumwebdrivermukesh
    Twitter- / mukeshotwani
    Blog- learn-automation.com
  • วิทยาศาสตร์และเทคโนโลยี

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

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

    This video is much better than naveen automation cos you covered many scenarios like scrapping all data, clicking from list or clicking directly using reversed customized XPath. Keep it up. Can you pls create video how we can compare two workbooks? Or how can we take webtable data in excel?

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

      You can write the table date using list or map.

  • @Pritamsawant65
    @Pritamsawant65 ปีที่แล้ว

    Thanks Mukesh, Same kind on problem i was struggling from last one week in my organisation and your logich has helped me. Thanks a lot

  • @arunkumar-zk4uw
    @arunkumar-zk4uw 2 หลายเดือนก่อน

    Super Video Boss... Thank you! My search for how to handle Dynamic Web Table in selenium has literally ended with this video

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

    It has covered most of the needed xpaths, Thanks for your generosity and knowledge sharing.

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

      So nice of you Thanks Umesh

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

    Awesome..Best explanation ever.i m clear now..

  • @martandshelar
    @martandshelar ปีที่แล้ว

    Hi Mukesh,
    I want to find the some text from 1st column and then I want to click on the link which is present on next column in same row.
    What logic we can use here, can you please suggest.

  • @successnick
    @successnick 2 ปีที่แล้ว +3

    Dude you saved my life. Thank you.

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

    Thank you Mukesh... Explained very clean and in sorted.

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

    Best explained...Thanks

  • @biplovbisayee1593
    @biplovbisayee1593 2 ปีที่แล้ว +3

    I was awesome . I thank you lot Mukesh, because of you and Naveen I m able to learn and get good opportunities.
    Thank you

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

      Thanks Biplov, I am glad our content is helping you. Keep Learning.

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

    Thanks Mukesh Sir very easily u taught how to deal with xpath.

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

    Thank you Mukesh. Your videos are really helpful :)

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

    Thanks for this Mukesh 😊, a revamped version for this topic is much much needed and now its there👍👍

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

    Awesome explanation.

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

    your explanation makes big concepts also so simple plz continue and give hope for ppl like us to continue testing

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

    Awesome 👏🏻
    Great stuff… Thank you ☺️

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

    Thanks a lot @Mukesh

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

    Hi Sir, how to get the location for any specific data? ex: I need to check in which row or column India is appearing in case if the txt is dynamic. plz help

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

    Thanks. Useful session.

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

      Glad it was helpful! Suganthi

  • @shubhamkumarsinha7019
    @shubhamkumarsinha7019 ปีที่แล้ว

    This is quite simple example we need some real time examples. Thanks

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

    What if we want to fetch the data of country company which belongs to only india what if such condition are there ?

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

    Thank you

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

    one of d best explanation

  • @Testing_QualityAnalyst_Channel
    @Testing_QualityAnalyst_Channel 9 หลายเดือนก่อน +1

    Thank Your Sir!

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

      You are welcome!

  • @asafaharoni1027
    @asafaharoni1027 ปีที่แล้ว

    Hey Mukesh. it was a good explanation in this video.
    I'd like to know how you handle cases where you need to write a generic method, using some string, in order to make some operation on specific data in the table.
    In the video, you show the use of specific elements...

  • @nmahender9818
    @nmahender9818 ปีที่แล้ว

    Hi mukesh can u let me know how to click each check box and how to get know each box selected or not

  • @user-dy2vx9di4d
    @user-dy2vx9di4d 7 หลายเดือนก่อน +1

    thank you soo much

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

      Glad it helped.

  • @user-ei7rw6yl9t
    @user-ei7rw6yl9t 2 ปีที่แล้ว +1

    Thanku for sharing 👍make some real time interview questions n answer ... Waiting for more videos.... Stay safe n healthy

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

    Hi Mukesh, Is there a way to handle AG-Grid using serenity framework or any Java testing framework. If yes, could you please make one video on that or could you please let us know any documentation on that.

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

      Noted, I will try to make video on this.

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

    too good explanation

  • @palakprashar1049
    @palakprashar1049 10 หลายเดือนก่อน +1

    Sir, do you have any example where xpath is changing dynamically in scroll view when user scrolls up and down??

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

      Hi Palak, try to use xpath with text or axes so if elements attribute is changing it wont effect the scripts.

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

    I don't want to use following or preceding but based on some condition wants to select checkbox. How this can be done???

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

      Hi Baji, conditions like what?

  • @mohammednawaz.s1214
    @mohammednawaz.s1214 ปีที่แล้ว +1

    Awesome sir

  • @RohanKumar-vc5ii
    @RohanKumar-vc5ii 5 หลายเดือนก่อน +2

    Hi Sir,
    Thanks a lot for the video... it is currently helping me during interview process as this topic is very important.
    I just had one small query:
    Below is the example where you have declared two lists one for getting the row elements and one for getting the data. cant we use only one list as { List rowdata=driver.findElements(By.xpath("//table[contains(@id,'cust')]//tr/td")) } instead of the below two lits
    List rowli=driver.findElements(By.xpath("//table[contains(@id,'cust')]//tr"));

    List rowdata=driver.findElements(By.xpath("//table[contains(@id,'cust')]//td"));

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

      Yes Rohan you can use td if only table data to verify but many time some rows like heading wont be part of td.

  • @nimmatotaashokkumar26
    @nimmatotaashokkumar26 2 หลายเดือนก่อน +1

    I want to click check box with selenium text but what if this "selenium" data is changing dynamically.

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

      You can parameterised the xpath

  • @rangaswamy3839
    @rangaswamy3839 ปีที่แล้ว

    1.Thank u for helping me a lot but mukesh how can we compare those table values with excel data table that means assume in case if we have download xl button then xl will download
    2.so we need to compare same table data with excel data can u pls help me about that or else can u pls make a single video pls mukesh atleast one video is enough

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

    I need help with the dynamic table. There are few conditions for columns need help can you connect with me and help??

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

      Hi Prasad please tell me what conditions you want to write ?

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

      @@Mukeshotwani Firstly the table structure is complicated i’m not able to find perfect rows bcoz of it. Second part is i’ve to fetch a particular row from column where column conditions needs to be true . So there are different columns like title , price and date i’ve to verify this column data and then fetch it

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

      It’s hard to explain in brief out here would be helpful if you connect I can try to explain in much better way.

  • @nayabkhan7788
    @nayabkhan7788 3 หลายเดือนก่อน

    Sir in my table the columns content keep change for example new jobs or training will show in the table. I cant do expected vs actual title cuz i don't know what is expected as it keep changing. How will i verify that ?? Please answer.. this is urgent.

  • @user-ox7er7ce7h
    @user-ox7er7ce7h 10 หลายเดือนก่อน +1

    best

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

    Thanks for the covered important topic. But still you are using indexing in xpath then how it comes the under dynamic. In future if any row or column added in table those xpath will not work right?

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

      Hi Vital, Please share some dynamic tables with me, I will try to add them in new video as well.

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

    How to automate if table has no table tr td tag?

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

      Hi Vaibhav, you can have div tag or span tag but you will be writing the same logic only xpath will change

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

    How to handle dynamic table in selenium, if row & column, both are dynamic and also How to validate multiple blank value in same row

  • @RohanKumar-bo6fi
    @RohanKumar-bo6fi 6 หลายเดือนก่อน +1

    Hello Sir, can you share the website URL which you used for this scenario.

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

      Here is the URL seleniumpractise.blogspot.com/2021/08/webtable-in-html.html

    • @ROHANKUMAR-nw2tx
      @ROHANKUMAR-nw2tx 6 หลายเดือนก่อน

      Thanks. Alot sir🙏

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

    hii mukesh it was very good explanation I have one doubt in one student table some students are failed some of them passed I want failed student Alldata like phone number, mail id Please explain this topic once thank u

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

      Thanks Srikanth, I will try

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

    Hello sir please make new series on Automation testing along with project

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

    How to create a dynamic xpath - If i type sachin it should highlight India , if i give jeff it should highlight USA . please tell how to write such xpath

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

      Hello, did you get the answer for your question because i am trying to find answer to same question

    • @DeepakMishra-ql4gh
      @DeepakMishra-ql4gh 5 หลายเดือนก่อน

      try something like this use parent and sibling both@@ManishaSG
      //table[@id='tablepress-1']//tr//td[contains(text(),'chrome')]//parent::tr/following-sibling::tr/td[4]

  • @thomalaajay
    @thomalaajay 2 ปีที่แล้ว +3

    This is heavy lines of code and more weight to the class file.. we can achieve it with simple one dynamic XPath if we are looking for one specific data validation or multiple..just a thought 😉.. thanks for the info

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

      Thanks Ajay but one dynamic XPath will not cover all scenarios

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

    Hi mukesh,
    Please make a video for handling captcha verification and OTP in selenium with python

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

      OTP not sure but captcha will be uploading soon

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

      @@Mukeshotwani thank u

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

    you should start from installation

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

    Code needs to be more clean. Use steam and reduce boilerplate code.

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

      Yes I was focusing more on the approach but yes agree with you that code can be optimized.

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

    I don't think this WebTable is Dynamic.

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

      Please give me some links which I can use for videos

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

    Hi Mukesh, I have faced web table questions in interviews like for a given time period print all US presidents from the wiki page. en.wikipedia.org/wiki/List_of_presidents_of_the_United_States. But this table little complicated. Could not complete it on time. Could please suggest the best approach??

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

      Hi Anumantha, what issue you are facing while completing this task.

  • @pravinchakote2397
    @pravinchakote2397 ปีที่แล้ว

    @Mukesh,
    //td[text()='Selenium']
    This is not working for me.
    But, Below one works.
    //td[contains (text(),'Selenium')]
    What is the difference between above two?
    Please help....
    Not getting where I am getting wrong...

    • @sauravnayak5188
      @sauravnayak5188 ปีที่แล้ว

      First one exactly looks for text ‘Selenium’ ..
      even if the attribute contains ‘Selenium-x’ it’ll not work ..
      Whereas contains looks for contains with the keyword.🎉

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

    what if no. of rows are 1000? meaning we can see 50 rows at one time and we have to scroll again to see next 50 rows and so on... in that case if i need to scroll everytime and store in a hashmap, what should be approch? @mukesh

    • @bai5481
      @bai5481 ปีที่แล้ว

      Hi i need u r help

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

    Thank you

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

      I am glad it helped 😊