How to check ascending and descending order with pagination?
package Admin; import java.util.ArrayList; import java.util.Collections; import java.util.List; import org.openqa.selenium.By; import org.openqa.selenium.WebElement; import org.testng.Assert; import org.testng.annotations.Test; import BaseInit.BaseInit; import MyMethods.MyLoginMethods; public class Sorting extends BaseInit { @Test public static void sortingtest() throws InterruptedException { // Login to Admin Panel MyLoginMethods.AdminLogin(datap.getProperty("email"), datap.getProperty("Pass")); driver.get(sitedata.getProperty("confiProURL")); Thread.sleep(2000); ArrayList<String> ActualList = new ArrayList<String>(); ArrayList<String> sortedList = new ArrayList<String>(); String[] pageItem = epresent("pageItem_className").getText().split(" "); String TotalPage = pageItem[3].trim(); System.out.println("Items per Page is- " + TotalPage); int PagePerItem = Integer.parse...