Selenium Java Coding Tips & Tricks #7 | How to Count Elements on Scrolling Page Infinitely

preview_player
Показать описание
#java#selenium

#########################
Udemy Courses:
#########################

Manual Testing+Agile with Jira Tool
************************************


Selenium with Java+Cucumber
********************************

Selenium with Python & PyTest
********************************

Selenium with python using Robot framework
****************************************

API Testing(Postman, RestAssured & SoapUI)
*****************************************

Web & API Automation using Cypress with Javascript
********************************************

Playwright with Javascript
**************************

Jmeter-Performance Testing
************************

SDET Essencials(Full Stack QA)
*************************

Appium-Mobile Automation Testing
************************************

Java Collections
*****************

Cucumber BDD Framework
***************************

Protractor with Javascript
***************************

#SeleniumTips
#JavaCoding
#SeleniumJava
#InfiniteScrolling
#JavaAutomation
#AutomationTesting
#SeleniumHacks
#SeleniumTricks
#SeleniumBestPractices
#CountElements
#WebDriverJava
#JavaAutomationTesting
#SeleniumWebDriver
#JavaTips
#AutomationTools
#CodingTips
#SeleniumDev
#SeleniumTest
#JavaCodeSnippets
#SeleniumCode
#WebAutomation
#TestingTips
#InfiniteScrollAutomation
#WebDriverTricks
#CodeWithJava
#SeleniumScripts
#AutomationSolutions
#SeleniumTutorial
#JavaTesting
#ScrollPageAutomation
#CountElementsOnScroll
#HandleInfiniteScrolling
#SeleniumJavaTips
#EfficientSelenium
#ScrollingAutomation
#SeleniumCodingTricks
#WebDriverHacks
#AutomationFramework
#TestingAutomation
#CodeAutomation
#JavaWebDriver
#CodingHacks
#SeleniumTechniques
#SmartTesting
#TestAutomationTools
#JavaAutomationFramework
#SeleniumExpert
#CodingBestPractices
#AutomationTestingTips
#SeleniumProTips
Рекомендации по теме
Комментарии
Автор

verticall scrolling:

js.executeScript("window.scrollTo(0,

Horizontal scrolling

js.executeScript("window.scrollTo(document.body.scrollWidth, 0);");

sdetpavan
Автор

Hi Pavan, can you share github repo link for this series

saurabhagrawal
Автор

I have a scenario where the current view does not have fixed size of elements loaded, there might be a overlap

vinodkomeershetty
Автор

Hi sir, can u also teach us how to horizontal scrolling plz

phaniraja
Автор

hello sir, could you help me please, by using this code the scroll is done but always stacks in the bottom, and the driver is not closing and no result in the console
while (true) {

currentCount = books.size();
if (currentCount== previousCount)
{
break;
}

js.executeScript("window.scrollBy(0, document.body.scrollHeight)");

Thread.sleep(5000);

}
System.out.println("The number of books is " + currentCount);

driver.quit();
}

}

discover
visit shbcf.ru