bro your code best it is very helpful for me i have been trying for 2 days but just by looking your video i find best solution
@kiransendhilkumar6125Күн бұрын
Hi , this video was very helpful in completing my task , thank you very much for posting this
@KrishnaSakinalaКүн бұрын
Glad it was helpful!
@sadakarp4 жыл бұрын
Hi Krishna, this is an excellent tutorial. My project is entirely of data tables and the same procedure worked seamlessly . thank you a ton for making paths for automation newbies like me.
@KrishnaSakinala4 жыл бұрын
Glad it helped... Please subscribe to the channel and keep visiting ... :)
@sadakarp4 жыл бұрын
I happen to discuss about pagination logic and calculating the count of rows with one of my team members today and given tries for alternative solutions if we could find any. We discovered that this can also be done using jQuery "length" function. Here is our alternative approach. 1. Wait for sometime to load the page where data table is present. 2. Take an integer variable with 0 as the default 3. Create an object for JavascriptExecutor 4. Find the length of the data table using jQuery "length" function 5. jQuery stores the value in Object so convert it into integer and store the jquery returned length in an integer variable say "a". 6. Find the displayed count from bottom of the page and store it in another integer variable say "b" 7. Compare the values of "a" and "b". 8. If a==b then "displayed row count is equals to data table row count " else "displayed row count is NOT equals to data table row count".
@monalisapanda78252 жыл бұрын
Hi Sir.This tuitorial is really great.This a long pending topic for me to look into and its really really helpful.You explained it very well.Thank you...
@KaranSharma-lm6eh2 жыл бұрын
Thank you so much Krishna, this has been very helpful to me. Very well explained !!
@satishkvs1563 жыл бұрын
Very Nice Explanation Saikrishna
@cyrilgeorge8705 жыл бұрын
It would be really helpful if u share ur code in git as per the date of each video to cross check
@ვ3ვ3ვ8 ай бұрын
Thenk yu for great video ❤
@Testing_QualityAnalyst_Channel9 ай бұрын
Great explained, thank you!
@swethaputti3 жыл бұрын
Thank you so much Krishna, it really helped me.
@KaranSharma-lm6eh2 жыл бұрын
Can we implement the same logic through Javascript ? If yes, any example if possible.
@gandhigeerthana20586 ай бұрын
What we need to do if getting no such element error. The xpath taken also correct means
@sireeshach65354 жыл бұрын
Here you told with pagination..can you explain how to count with scroll..if u assume myntra when you scroll down some products will be loaded..so what should we do to get the whole count
@KrishnaSakinala4 жыл бұрын
Can you tell me the steps what exactly you want to do?
@sireeshach65354 жыл бұрын
@@KrishnaSakinala I am not able to scroll within a webpage.can you tell me how to do that
@navenreddyaleti74465 жыл бұрын
Nice Saikrishna.
@abuthahir93423 жыл бұрын
Thank you very useful
@shanmukharaju39383 жыл бұрын
is we can use xpaths instead of id.?
@nikunjkumar5554 жыл бұрын
Great Technique, appreciated :)
@KrishnaSakinala4 жыл бұрын
My pleasure! Please subscribe to the channel and keep visiting😀
@rohitkumark20873 жыл бұрын
Very nice
@veerababupanasa4592 Жыл бұрын
Hi sir why ur taking class attribute (line no 30) Already u taken id in that same line
@sapangupta40394 жыл бұрын
Can you tell me what if the next button is not present on last page?What changes i need to make in this code?
@KrishnaSakinala4 жыл бұрын
check for non existence of the button. Please subscribe to the channel and keep visiting ... :)
@pandithatchinadhanasekar80164 жыл бұрын
My scenarios is adding one use and I need to check the user with status in pagination table so kindly help me to do this
@SA-iv2rg4 жыл бұрын
What do you do if there is no next button on the last page. If last page doesn't contain a next button, do you change to.contains(null)?
@aneeshkarthikrajaramhebbar1500 Жыл бұрын
Your latest tut videos??
@aneeshkarthikrajaramhebbar1500 Жыл бұрын
Dada??
@srujani19774 жыл бұрын
How would I be able to display all the values(columns) of each row instead of just the name as specified in the example above?
@bandolero76794 жыл бұрын
In case you didn't figure it out, this is what I did for something similar: 1. Get the TR rows in the corresponding table: IList GroupUsersRows = chrmdriver.FindElements(By.CssSelector("#userSearchResults > table:nth-child(3) > tbody:nth-child(1) > tr")); 2. Iterate through the rows and extract the last name, first name and email columns(had to use .Skip(1) since those were the Table headers): /***each row I was reading from had id="Row{N}Col(0-9)", so even though went witha foreach, I had to use this counter as well to to take this into account..***/ int r = 1; foreach (IWebElement gUser in GroupUsersRows.Skip(1)) { string lastName = gUser.FindElement(By.Id($"Row{r}Col0")).Text; string firstName = gUser.FindElement(By.Id($"Row{r}Col1")).Text; string email = gUser.FindElement(By.Id($"Row{r}Col4")).Text.Trim(); r++; .... } Hope this helps!!
@swathireddy35974 жыл бұрын
Hi sir I used same code is working fine but from web table it's not reading all the rows for 350 rows it's reading 309 rows some rows are not reading I debuged the code but failed where is happens
@sadakarp4 жыл бұрын
It happens in my case in very first page where it counts only one row. Thread.sleep(10000) helped me to get the correct count. Thread.sleep(10000); List namesElements = driver.findElements(By.cssSelector("#accounts>tbody>tr>td:nth-child(1)")); System.out.println("size of names elements : "+namesElements.size());