You need to click the Delete button on the page, such as:
@Testpublic static void Fabu () {testmenujump.jumpexam (driver); Testmenujump.jumpexampa (driver); Webelement wes = driver.findelement (By.id ("Category")); Select sc = new Select (WES); Sc.selectbyindex (3); Wes.submit ();//driver.findelement (By.id ("Content"). SendKeys ("" +i) ;//driver.findelement (By.classname ("btn btn-info btn-sm")); Webelement we = driver.findelement (By.linktext ("next page"));d o{list<webelement> List = driver.findelements ( By.linktext ("delete")), if (List.size () >0) {for (int i=0;i<list.size (); i++) {Driver.findelement (by.linktext ("delete")) . Click (); Alert alert = Driver.switchto (). alert (); Alert.dismiss ();}} System.out.println (List.size ());/*for (Webelement we1:list) {We1.click (); Alert alert = Driver.switchto (). alert (); Alert.dismiss ();} */try{webelement wel = driver.findelement (By.linktext ("next page")); Wel.click ();} catch (Nosuchelementexception e) {System.out.println ("end"); we = NULL;}} while (we! = null);}
Selenium Click the Delete button on the page