How to Handle Dynamic WebTable - WebDriver Session 14

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

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

  • @Aditya_Valluru
    @Aditya_Valluru 4 ปีที่แล้ว +20

    Impressed with your English, compare to other paid selenium courses your explanation is far better and clean.

  • @Star-vg7ix
    @Star-vg7ix ปีที่แล้ว +1

    Simple ways to approach a complex matter! Well done Naveen. I worked on a past project where all of the latest technology was incorporated..NOTHING worked!!

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

    So easy and very clear explanation...a never forgetting sessions 👏👏👏
    Sharing knowledge is the first step to humanity 😘

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

    Naveen your tutorials are very focused and clear!! Thanks for all your hard work!!

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

    Hi Naveen---Your teaching style is excellent...I really learn many things from your videos. Keep it up

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

    Hi Naveen, hats off to your web table explanation. I have seen so many courses but the web table concept is not so clear. After watching this video, I am so happy that now I am very much clear in web table handling. Thank you so much. Keep it up.

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

    This is awesome way of handling dynamic table🙏👌

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

    This was in fact a superb explanation. I think this video has made handling dynamic table seem like a feather. Appreciated.

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

    U r legend in automation explanation, great sibling😍

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

    Thank you so much Naveen for providing these very very useful videos, your way of explaining is excellent....I learnt a lot from your videos.

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

    First method worked for me. Thank you for this approach 😊

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

    This video was very useful for me to find a solution, thank you so much!

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

    Hello Naveen sir, Your simple and clear techniques help me to understand the topic. Keep it up sir.

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

    Absolutely brilliant approach!! Thank you for putting it up in such a simple manner!!

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

    Hi Naveen
    In one of my recent interview the question was what if the table dynamically changes it’s columns like if new columns are added and referring to data in that column I need to select the checkbox
    Could you help me with logic for these, I don’t want to change the XPath though new columns are getting added

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

    Hi Naveen,
    Who ever ask me for selenium tutorial first I take your name only... as your the best 1

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

    Hi Naveen ,
    your teaching is amazing

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

    Superb Naveen!! Very very useful tricks you are given for handling dynamic table.. This help me a lot in my project. Thank you very much😊

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

    Hi Naveen, your teaching style is outstanding. I learnt a lot by watching your page object model video. Keep it up great work!

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

    Thank you Naveen 👍

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

    Hi naveen , I am not able to locate the contacts button because I am not able to find the frame in the CRM website example that you have used. Can you please help me out how can we find the frame within the new CRM webpage ?

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

    Hi Sir,
    Can I know how to write xpath for a checkbox based on its two preceding siblings. In your example only, if I want to write xpath for checkbox based on both Name and Company, how can we write? please explain.

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

    just crispy and clear

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

    Great explanation sir..
    Thanku so much

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

    This video helped for me so much thank u bro 😍

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

    How to selecting the grid say some from 4 th column 3rd row to 6th column 7th row and right
    click and copy the values .

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

    Hi Naveen.....your teaching is excellent.

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

    Really helpful, appreciate your work .

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

    Hi Naveen, I am trying to use this logic of webtable in POM but i am getting "Cannot invoke "com.hrm.qa.pages.Recruitment.clickOnCheckBox()" because "this.recruitment" is null" error, I am not getting what will be the return when I click in checkbox. Can u pls help me ?

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

    Hi Naveen,
    Firepath does not exists now. Can you please suggest any other add in.?

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

    Hi Sir,
    I have a small doubt, When you are writing customized XPath you are using a single slash in front of the parent element may I know the reason? When I am using a single slash in front of preceding elements also it's working fine but you are using double slash there!
    Thank You!

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

      single slash represent just inside that element and double slash represent anywhere in the DOM

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

      @@bihari1422 Thank you

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

    i am not able to login into freecrm.com & access ebay registration page. Are those webpages still available today?

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

    line no 48: the range of for loop is from 4 to 7. If we are truely considering the dynamic scenario then we will face issue again. Suppose next time we visit the page then 50 rows appear in the table then i think Method 1 will not be suitable.
    Although I am very clear with method 2 approach but Naveen is there any way to overcome challenge of method 1??
    Posted on: 13March 2022

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

    Appending 2 strings and creating a path is good but cannot be used in python can you please help

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

    hi Naveen i have a doubt if that checkbox is at 7th place instead of 3 then whatever xpath is there will be one parent and 5 preceeding sibling then how will this xpath works?

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

    Hello Naveen Sir,
    As per interview point of view is 2nd method preferable ?
    Can we use it if interviewer asks to handle dynamic webtable?

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

    Hi naveen , I hope you be able to reply me, If i wish to add more rows, is there any way, just like arrays.length or string.length() so that i don't have to hard code terminating condition in loop

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

    Amazing ....... thanks Naveen

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

    Helps me a lot.

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

    Hi naveen can you guide me how do i handle a web table which has 1000 of records and all records are in same page.
    If i scroll down more and more data keeps on loading which also takes some 4 to 5 seconds to load.Please guide me i think only you can help me.

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

    Hi Naveen, Is there any customized xpath for selecting an element in 3rd row and 3rd column? or we only use absolute xpath for that?

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

    hi sir
    in this xpath after text you are using single slash(/) but after preceding you are using // ---@naveen can you explain this

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

    nice explain keep uploading

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

    excellent tutorial.

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

    Hi Naveen.....For the second approach of customized Xpath using siblings, what if the name we are looking for is not visible in the table. The name may appear somewhere down at the bottom of the table and we have to use scroll bar to see that name. In that case, if the name is not visible, then it may throw ElementNotFound exception. How do we handle such scenarios where we can scroll down to the required name?

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

      its a very rare case, but still u can scroll down using javascript executor using scrolling view method to that specific element to make it visible first, then use custom path using siblings.

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

    The credentials for freecrm site is not working. It's not taking to homepage. Can you please provide the credentials?

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

    Hi Naveen, I am using chropath in firefox 67.0.4. It works fine for other webapps. But in CRMPRO site, its working fine in login page .when it moves to next page, it is not inspecting any element. Please could you help me with it.

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

    Really nice explanation

  • @ShubhamMishra-lo6wz
    @ShubhamMishra-lo6wz 3 ปีที่แล้ว

    What will happen if someone deletes the preceding record ( contact_id).. in that case will it fail ?? @naveenautomationlabs

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

    I can not select row value of a JavaScript table.

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

    Hi Naveen,
    i facing issue with following xpath
    //td[text()='Heavyweight Coated Paper']
    in this xpath the text 'Heavyweight Coated Paper' is present but the problem is it has  , so it is not recognized becaouse of that.
    I can use contains instead of text equal, but the problem the patter of the text we search may be sub set another text in the same td
    exp: i am searching for 'Heavyweight Coated Paper ' there is other text like "super Heavyweight Coated Paper', so contains dose not work here.
    So could you please let me know how to search exact text which has  
    Thanks,
    Gavi

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

      @Gavi Pujar .. Hey you can try starts with or ends with keyword instead of contains.

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

    thank you so much sir... perfectly explained

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

    You are amazing bro....keep uploading videos....u explain every concept very clearly

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

    Hi, why there is a single / before parent and // before preceding-sibling. What is the difference . Why can’t we use // before parent axes. Thanks in advance

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

    Hi Naveen thank u for all your videos ....one question in this video 17 min 21 seconds u r correcting one xpath there u wrote tr["+i+"] ..can't we write tr[i] directly

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

    Hello naveen, Freecrm site is not working, will u plz suggest another site

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

    Hi Naveen,thanks for the tutorial,my question is how about if i do not know the number of raws what do i do,
    and another question is how do we deal with a for loop that loops on empty columns and raws?please assist i am actually blocked ,the table i am looping trough is having hidden raws and columns and my script is failing

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

    Hi Naveen,
    How i can browse thru all the available videos in a sequence
    Please reply..

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

    Hi Naveen,
    if web table has lots of data and has pagination, just like your Contacts page have, will this way may I resolve the problem? Because of how many paginations is there and which pagination number the actual search data will be present is unpredictable in runtime. Could you suggest please.
    Thanks

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

    Nice and very clear

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

    Hi Naveen, what if we don’t have table with tr and td, instead data is being populated using div??
    How to get those table into HashMap.

  • @naveenkumar-mh3sf
    @naveenkumar-mh3sf 4 ปีที่แล้ว

    Hi what if we don't know which column is having test 2 test keywords

    • @naveenkumar-mh3sf
      @naveenkumar-mh3sf 4 ปีที่แล้ว

      I mean if check box column and name column is also getting changed. How we do in this case

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

    nice explaination but i have one query in this like if you have 3 " test2 test2 " names in one record how can i handle it ?

  • @DineshKumar-jm9ll
    @DineshKumar-jm9ll 5 ปีที่แล้ว

    If I'm having one output in console. I need to found exact name in the table and I have to click. For eg if I have a printed "test test" in the console using get text. Now I have pick up the value from the console and I need to search in the table and click.

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

    The second method is obvius better but.... only works when you have some data in the table?.... what if i want to send text to a TD instead of clicking a check box? how can i locate the first empty TD of the table? using driver.findElement(By.xpath("//a[contains(text(),' ')].......... ???

  • @-PrasannaMurti
    @-PrasannaMurti 2 ปีที่แล้ว

    sir i am not able to login to this crm page?

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

    Hi Naveen,
    I m trying to execute same concept on "ui.cogmento.com/contacts" by using xpath driver.findElement(By.xpath("//td[contains(text(),'Test 2 Test 2')]/parent::*//preceding-sibling::td//input[@type='checkbox'])")).click();
    This xpath is showing proper as highlighted on elements section of browser. But, when i m executing script, at that time its not finding this element.
    Thanks in advance

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

    Its very useful.......thank you for sharing this video

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

    What if there is no 'a' tag in the second method?

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

    Hi Naveen, explained very well.. it could be better if you would have explained how you can pass the td or anchor value dynamically to that xpath by creating some method. And some more explanation when user wants to verify a perticular row values or column vlaues..

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

    Hi Naveen, appreciate all your tutorials, full of knowledge as always, I wanted to share my interview experience, I recently attended an interview, they asked me this tricky question and I could not give the exact solution hope you can help me with this :
    "We have a big web table in our webpage consisting of lots of rows which are visible only by scrolling down vertical scroller in that table (not webpage scroller) each row is defined as separate table tag in html, how do i get to view the last row in that big table and print text from it?"
    My answer was we can use javascript executor and call scrollintoview method, but he said it works only at page level not for scrolling table inside the webpage.
    Appreciate your comments...

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

      did you get the answer for this question?

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

      It goes like this :
      EventFiringWebdriver efb = new EventFiringWebdriver(driver);
      efb.executeScript("document.querySelector('').scrollTop=500");

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

    hi sir thanks for your video,please clear my one doubt if in web table duplicate name is available and unique transation id is available then how to verify the data on the basics of the transation id please let me know
    REPLY

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

    thanks for such a good lesson.. i got a doubt..let say if we got dynamic rows..like here you have sleetced that u have rows from 4 to 7..if that 7 is dynamic..like we can have any values in place of 7(4 to any number),then in the for loop,wht shud be the value we should provide in place of 7.(int i=4;i

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

    Hello sir,
    is it following sibiling or forward-sibiling? because you pronouncing as forward-sibiling

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

    It was really amazing ...I have one question sir....Where did you learn all this?? I want to do this all by myself but i cannot think like you sir..I want to do that without taking reference from other codes....I just want to make my own code with my own logic...What should i do for that??? Can you please help me out??

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

    It was really amazing, & very usefull vedio...thank yow so much..Sir.

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

    Hi Naveen, Thanks for this video. Could you please let us know how do we handle handle a web table whose columns load as we scroll the page and so does rows. And if we have to update the [td ] of a row, in say some 5th page, how do we handle this.

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

    Hi Naveen,
    Thanks for your wonderful videos which really help a person to think about automation.
    Your explanation are superb which help people to understand any things about Java or selenium very easily.....Thanks bro for nice work which you do for people.....god bless you always

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

      @Shivanshu Sharma use this : String name= driver.findElement(By.xpath(before_xpath + I + After_xpath)).getText();

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

      @Shivanshu Sharma use this :
      String before_xpath= "//*[@id=\"vContactsForm\"]/table/tbody/tr[";
      String after_xpath= "]/td[1]/input";
      for (int i=5; i

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

      @Shivanshu Sharma u didn't appended i in string name , check once

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

    Thanks bro for your smart solution

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

    Hi Naveen,
    One more question.
    What if there is no Scrolling down option available but instead developers have provided the pagination option like - Previous, 1,2,3... Next, etc. with each page holding 10 records.
    And if the element that we are looking for appears on the 5th page.
    Fortunately, in one of my projects, developers have provided the pagination option and have also given a Search textbox above the table using which we can search the record directly and then interact with it. This has made my life easier.
    But what if there is no search textbox and the user has to click on the Page Numbers to look for the element of his interest.
    Then how do we handle such case.

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

      Amol Nawale you answered your own question 😊

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

      I am facing same problem. I want to search text from 5th page 2 column..then how to use pagination.I tried many but not getting result.
      If u got answer then tell me.

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

    sir how we can add entire rows and columns in dynamic table using excel sheet can you please explain us!!!

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

    Fantastic! Thanks a lot Naveen!

  • @sachintatkare.9362
    @sachintatkare.9362 7 ปีที่แล้ว

    Excellent explanation , really helpful

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

    Is there anyway to use firepath in firefox 67.0.4?

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

    Awesome tutorial

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

    Hi Naveen,
    I wanted to select the checkboxes based on the company name, I gave two records the same company name say 'Natural ltd' and I want to select both of them, how I can do that?

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

      U can use standard method i.e for loop

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

    Super bro

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

    Hi Naveen, you mentioned in earlier tutorials that we should avoid using absolute Xpath, but now in this tutorial you are using absolute Xpath, why is that?

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

    great explanation

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

    Hi Naveen, nice video. please let me know selenium support salesforce (CRM tool). I need support in salesforce automation through selenium

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

    Hi Naveen can u explain this also , we have web table like u shown in that table have first name lable and last name labels , then subject names also there, will give one full name like LOKESH Is a first name REDDY Is last name, you just find the name is there in that table or not, if name there you have to print name with subject marks also can u do this program for me , u can take any example

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

    If some situation click button is not working when clicking on contact link freecrm.com and getting error nosuchelement exception. What is the others ways to resolve this problem? Please suggest sir.

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

      Before clicking on contacts , give a wait of 2 sec,, it will work

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

    Still in method 2 31:20 you are hardcoding user values, That's doesn't seems dynamic.

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

      Here web table is dynamic, not the test data.

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

      @@naveenautomationlabs yeah, but it would be little bit better if you split the custom xpath like before and after then concating with user defined value, that's what I did after I learnt creating custom xpath from you video from you.

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

    Nicely Explained :-) Keep Teaching.

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

    Hey Naveen its amazing...
    but if we have the same contact name then how it will handle that??

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

      than i guess you also need to put one more condition in if loop
      if(element.contain("name")&&i=1)
      driver.findelement.click

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

    but what if names are same..I think it won't work

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

    Hey naveen you have explained it very well, can you please tell how to write a feature file scenario for same webtable in cucumber

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

    thanku so much sir...this video is enough to crack interview?

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

    Hi Naveen.........can you explain how to handle webelements having ::before html tag

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

    Hi all. Pls help mee. I want to update an empty dynamic table with values using python. So far no luck or help online. Pls guide to the right path. Much appreciation