List of usage examples for org.openqa.selenium By cssSelector
public static By cssSelector(String cssSelector)
From source file:com.crawljax.plugins.testilizer.generated.photogallery_EXND.GeneratedTestCase42.java
public void checkState30_GeneratedAssertions() { if (!(isElementPresent(By.cssSelector("div#Granny[id=\"Granny\"]")))) { System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName()); return;//w w w . ja v a 2 s. co m } // generated assertion in case of ElementTagAttMatch if (!(isElementPresent(By.cssSelector("div.method[class=\"method\"]")))) { System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName()); return; } // generated assertion in case of ElementTagAttMatch element = new DOMElement("IMG", "", new ArrayList<String>(Arrays.asList("id=\"ss_photo\"", "onload=\"javscript:ss_loaddone();\"", "src=\"images/000006_rryky_0.jpg\""))); parentElement = new DOMElement("A", "", new ArrayList<String>( Arrays.asList("href=\".?p=6\"", "id=\"ss_link2\"", "style=\"display:inline;\""))); childrenElements.clear(); // if(!(isElementRegionTagPresent(parentElement , element, childrenElements))){System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName()); return;} // generated assertion in case of RegionTagMatch element = new DOMElement("SPAN", "1", new ArrayList<String>(Arrays.asList("id=\"ss_n\""))); parentElement = new DOMElement("DIV", "", new ArrayList<String>(Arrays.asList("class=\"titlepart\"", "style=\"letter-spacing: 2px; padding-bottom: 1em; margin-bottom: 0px;\""))); childrenElements.clear(); childrenElements.add(new DOMElement("#text", "1", new ArrayList<String>(Arrays.asList("")))); // if(!(isElementRegionTagPresent(parentElement , element, childrenElements))){System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName()); return;} // generated assertion in case of RegionTagMatch element = new DOMElement("SPAN", "2", new ArrayList<String>(Arrays.asList("id=\"ss_n\""))); parentElement = new DOMElement("DIV", "", new ArrayList<String>(Arrays.asList("class=\"titlepart\"", "style=\"letter-spacing: 2px; padding-bottom: 1em; margin-bottom: 0px;\""))); childrenElements.clear(); childrenElements.add(new DOMElement("#text", "2", new ArrayList<String>(Arrays.asList("")))); // if(!(isElementRegionTagPresent(parentElement , element, childrenElements))){System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName()); return;} // generated assertion in case of RegionTagMatch }
From source file:com.crawljax.plugins.testilizer.generated.photogallery_EXND.GeneratedTestCase42.java
public void checkState31_GeneratedAssertions() { if (!(isElementPresent(By.cssSelector("div#Granny[id=\"Granny\"]")))) { System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName()); return;/*w w w . j a v a 2s . c om*/ } // generated assertion in case of ElementTagAttMatch element = new DOMElement("IMG", "", new ArrayList<String>(Arrays.asList("id=\"ss_photo\"", "onload=\"javscript:ss_loaddone();\"", "src=\"images/000006_rryky_0.jpg\""))); parentElement = new DOMElement("A", "", new ArrayList<String>( Arrays.asList("href=\".?p=6\"", "id=\"ss_link2\"", "style=\"display:inline;\""))); childrenElements.clear(); // if(!(isElementRegionTagPresent(parentElement , element, childrenElements))){System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName()); return;} // generated assertion in case of RegionTagMatch element = new DOMElement("SPAN", "1", new ArrayList<String>(Arrays.asList("id=\"ss_n\""))); parentElement = new DOMElement("DIV", "", new ArrayList<String>(Arrays.asList("class=\"titlepart\"", "style=\"letter-spacing: 2px; padding-bottom: 1em; margin-bottom: 0px;\""))); childrenElements.clear(); childrenElements.add(new DOMElement("#text", "1", new ArrayList<String>(Arrays.asList("")))); // if(!(isElementRegionTagPresent(parentElement , element, childrenElements))){System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName()); return;} // generated assertion in case of RegionTagMatch element = new DOMElement("SPAN", "2", new ArrayList<String>(Arrays.asList("id=\"ss_n\""))); parentElement = new DOMElement("DIV", "", new ArrayList<String>(Arrays.asList("class=\"titlepart\"", "style=\"letter-spacing: 2px; padding-bottom: 1em; margin-bottom: 0px;\""))); childrenElements.clear(); childrenElements.add(new DOMElement("#text", "2", new ArrayList<String>(Arrays.asList("")))); // if(!(isElementRegionTagPresent(parentElement , element, childrenElements))){System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName()); return;} // generated assertion in case of RegionTagMatch element = new DOMElement("SPAN", "Yourratingsaved!", new ArrayList<String>(Arrays.asList("id=\"rateStatus\""))); parentElement = new DOMElement("DIV", "", new ArrayList<String>(Arrays.asList(""))); childrenElements.clear(); childrenElements.add(new DOMElement("#text", "Yourratingsaved!", new ArrayList<String>(Arrays.asList("")))); // if(!(isElementRegionTagPresent(parentElement , element, childrenElements))){System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName()); return;} // generated assertion in case of RegionTagMatch }
From source file:com.crawljax.plugins.testilizer.generated.photogallery_EXND.GeneratedTestCase44.java
@Test public void method44() { driver.get(url);/*from ww w . j av a 2 s.c o m*/ //From state 0 to state 27 //Eventable{eventType=click, identification=text Admin Page, element=Element{node=[A: null], tag=A, text=Admin Page, attributes={href=admin.php, title=Login to the Administration Region}}, source=StateVertexImpl{id=0, name=index}, target=StateVertexImpl{id=27, name=state27}} mutateDOMTree(0); checkState0_OriginalAssertions(); checkState0_ReusedAssertions(); checkState0_GeneratedAssertions(); checkState0_LearnedAssertions(); checkState0_AllAssertions(); checkState0_RandAssertions1(); checkState0_RandAssertions2(); checkState0_RandAssertions3(); checkState0_RandAssertions4(); checkState0_RandAssertions5(); driver.findElement(By.linkText("Admin Page")).click(); //From state 27 to state 28 //Eventable{eventType=click, identification=cssSelector input.submit, element=Element{node=[INPUT: null], tag=INPUT, text=, attributes={class=submit, type=submit, value=??????Login??????}}, source=StateVertexImpl{id=27, name=state27}, target=StateVertexImpl{id=28, name=state28}} mutateDOMTree(27); checkState27_OriginalAssertions(); checkState27_ReusedAssertions(); checkState27_GeneratedAssertions(); checkState27_LearnedAssertions(); checkState27_AllAssertions(); checkState27_RandAssertions1(); checkState27_RandAssertions2(); checkState27_RandAssertions3(); checkState27_RandAssertions4(); checkState27_RandAssertions5(); driver.findElement(By.id("loginAdminPass")).clear(); driver.findElement(By.id("loginAdminPass")).sendKeys("editor"); driver.findElement(By.cssSelector("input.submit")).click(); //From state 28 to state 29 //Eventable{eventType=click, identification=text Manage Categories, element=Element{node=[A: null], tag=A, text=Manage Categories, attributes={href=?page=categories}}, source=StateVertexImpl{id=28, name=state28}, target=StateVertexImpl{id=29, name=state29}} mutateDOMTree(28); checkState28_OriginalAssertions(); checkState28_ReusedAssertions(); checkState28_GeneratedAssertions(); checkState28_LearnedAssertions(); checkState28_AllAssertions(); checkState28_RandAssertions1(); checkState28_RandAssertions2(); checkState28_RandAssertions3(); checkState28_RandAssertions4(); checkState28_RandAssertions5(); driver.findElement(By.linkText("Manage Categories")).click(); //From state 29 to state 30 //Eventable{eventType=click, identification=text << Admin Page, element=Element{node=[A: null], tag=A, text=<< Admin Page, attributes={href=?}}, source=StateVertexImpl{id=29, name=state29}, target=StateVertexImpl{id=30, name=state30}} mutateDOMTree(29); checkState29_OriginalAssertions(); checkState29_ReusedAssertions(); checkState29_GeneratedAssertions(); checkState29_LearnedAssertions(); checkState29_AllAssertions(); checkState29_RandAssertions1(); checkState29_RandAssertions2(); checkState29_RandAssertions3(); checkState29_RandAssertions4(); checkState29_RandAssertions5(); driver.findElement(By.linkText("<< Admin Page")).click(); //From state 30 to state 31 //Eventable{eventType=click, identification=text Log Out, element=Element{node=[A: null], tag=A, text=Log Out, attributes={href=?page=logout}}, source=StateVertexImpl{id=30, name=state30}, target=StateVertexImpl{id=31, name=state31}} mutateDOMTree(30); checkState30_OriginalAssertions(); checkState30_ReusedAssertions(); checkState30_GeneratedAssertions(); checkState30_LearnedAssertions(); checkState30_AllAssertions(); checkState30_RandAssertions1(); checkState30_RandAssertions2(); checkState30_RandAssertions3(); checkState30_RandAssertions4(); checkState30_RandAssertions5(); driver.findElement(By.linkText("Log Out")).click(); //Sink node at state 31 mutateDOMTree(31); checkState31_OriginalAssertions(); checkState31_ReusedAssertions(); checkState31_GeneratedAssertions(); checkState31_LearnedAssertions(); checkState31_AllAssertions(); checkState31_RandAssertions1(); checkState31_RandAssertions2(); checkState31_RandAssertions3(); checkState31_RandAssertions4(); checkState31_RandAssertions5(); }
From source file:com.crawljax.plugins.testilizer.generated.photogallery_EXND.GeneratedTestCase44.java
public void checkState27_GeneratedAssertions() { if (!(isElementPresent(By.cssSelector("div#Granny[id=\"Granny\"]")))) { System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName()); return;/*from w w w. jav a2s .co m*/ } // generated assertion in case of ElementTagAttMatch }
From source file:com.crawljax.plugins.testilizer.generated.photogallery_EXND.GeneratedTestCase44.java
public void checkState28_GeneratedAssertions() { if (!(isElementPresent(By.cssSelector("div#Granny[id=\"Granny\"]")))) { System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName()); return;//from w w w . j a v a 2s .co m } // generated assertion in case of ElementTagAttMatch if (!(isElementPresent(By.cssSelector("div.method[class=\"method\"]")))) { System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName()); return; } // generated assertion in case of ElementTagAttMatch element = new DOMElement("IMG", "", new ArrayList<String>(Arrays.asList("id=\"ss_photo\"", "onload=\"javscript:ss_loaddone();\"", "src=\"images/000006_rryky_0.jpg\""))); parentElement = new DOMElement("A", "", new ArrayList<String>( Arrays.asList("href=\".?p=6\"", "id=\"ss_link2\"", "style=\"display:inline;\""))); childrenElements.clear(); if (!(isElementRegionTagPresent(parentElement, element, childrenElements))) { System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName()); return; } // generated assertion in case of RegionTagMatch element = new DOMElement("SPAN", "1", new ArrayList<String>(Arrays.asList("id=\"ss_n\""))); parentElement = new DOMElement("DIV", "", new ArrayList<String>(Arrays.asList("class=\"titlepart\"", "style=\"letter-spacing: 2px; padding-bottom: 1em; margin-bottom: 0px;\""))); childrenElements.clear(); childrenElements.add(new DOMElement("#text", "1", new ArrayList<String>(Arrays.asList("")))); if (!(isElementRegionTagPresent(parentElement, element, childrenElements))) { System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName()); return; } // generated assertion in case of RegionTagMatch element = new DOMElement("SPAN", "2", new ArrayList<String>(Arrays.asList("id=\"ss_n\""))); parentElement = new DOMElement("DIV", "", new ArrayList<String>(Arrays.asList("class=\"titlepart\"", "style=\"letter-spacing: 2px; padding-bottom: 1em; margin-bottom: 0px;\""))); childrenElements.clear(); childrenElements.add(new DOMElement("#text", "2", new ArrayList<String>(Arrays.asList("")))); if (!(isElementRegionTagPresent(parentElement, element, childrenElements))) { System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName()); return; } // generated assertion in case of RegionTagMatch }
From source file:com.crawljax.plugins.testilizer.generated.photogallery_EXND.GeneratedTestCase44.java
public void checkState29_GeneratedAssertions() { if (!(isElementPresent(By.cssSelector("div#Granny[id=\"Granny\"]")))) { System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName()); return;//from w ww.ja v a2 s . co m } // generated assertion in case of ElementTagAttMatch if (!(isElementPresent(By.cssSelector("div.method[class=\"method\"]")))) { System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName()); return; } // generated assertion in case of ElementTagAttMatch element = new DOMElement("IMG", "", new ArrayList<String>(Arrays.asList("id=\"ss_photo\"", "onload=\"javscript:ss_loaddone();\"", "src=\"images/000006_rryky_0.jpg\""))); parentElement = new DOMElement("A", "", new ArrayList<String>( Arrays.asList("href=\".?p=6\"", "id=\"ss_link2\"", "style=\"display:inline;\""))); childrenElements.clear(); if (!(isElementRegionTagPresent(parentElement, element, childrenElements))) { System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName()); return; } // generated assertion in case of RegionTagMatch element = new DOMElement("SPAN", "1", new ArrayList<String>(Arrays.asList("id=\"ss_n\""))); parentElement = new DOMElement("DIV", "", new ArrayList<String>(Arrays.asList("class=\"titlepart\"", "style=\"letter-spacing: 2px; padding-bottom: 1em; margin-bottom: 0px;\""))); childrenElements.clear(); childrenElements.add(new DOMElement("#text", "1", new ArrayList<String>(Arrays.asList("")))); if (!(isElementRegionTagPresent(parentElement, element, childrenElements))) { System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName()); return; } // generated assertion in case of RegionTagMatch element = new DOMElement("SPAN", "2", new ArrayList<String>(Arrays.asList("id=\"ss_n\""))); parentElement = new DOMElement("DIV", "", new ArrayList<String>(Arrays.asList("class=\"titlepart\"", "style=\"letter-spacing: 2px; padding-bottom: 1em; margin-bottom: 0px;\""))); childrenElements.clear(); childrenElements.add(new DOMElement("#text", "2", new ArrayList<String>(Arrays.asList("")))); if (!(isElementRegionTagPresent(parentElement, element, childrenElements))) { System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName()); return; } // generated assertion in case of RegionTagMatch }
From source file:com.crawljax.plugins.testilizer.generated.photogallery_EXND.GeneratedTestCase44.java
public void checkState30_GeneratedAssertions() { if (!(isElementPresent(By.cssSelector("div#Granny[id=\"Granny\"]")))) { System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName()); return;/*from w w w .ja va2 s. c o m*/ } // generated assertion in case of ElementTagAttMatch if (!(isElementPresent(By.cssSelector("div.method[class=\"method\"]")))) { System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName()); return; } // generated assertion in case of ElementTagAttMatch element = new DOMElement("IMG", "", new ArrayList<String>(Arrays.asList("id=\"ss_photo\"", "onload=\"javscript:ss_loaddone();\"", "src=\"images/000006_rryky_0.jpg\""))); parentElement = new DOMElement("A", "", new ArrayList<String>( Arrays.asList("href=\".?p=6\"", "id=\"ss_link2\"", "style=\"display:inline;\""))); childrenElements.clear(); if (!(isElementRegionTagPresent(parentElement, element, childrenElements))) { System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName()); return; } // generated assertion in case of RegionTagMatch element = new DOMElement("SPAN", "1", new ArrayList<String>(Arrays.asList("id=\"ss_n\""))); parentElement = new DOMElement("DIV", "", new ArrayList<String>(Arrays.asList("class=\"titlepart\"", "style=\"letter-spacing: 2px; padding-bottom: 1em; margin-bottom: 0px;\""))); childrenElements.clear(); childrenElements.add(new DOMElement("#text", "1", new ArrayList<String>(Arrays.asList("")))); if (!(isElementRegionTagPresent(parentElement, element, childrenElements))) { System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName()); return; } // generated assertion in case of RegionTagMatch element = new DOMElement("SPAN", "2", new ArrayList<String>(Arrays.asList("id=\"ss_n\""))); parentElement = new DOMElement("DIV", "", new ArrayList<String>(Arrays.asList("class=\"titlepart\"", "style=\"letter-spacing: 2px; padding-bottom: 1em; margin-bottom: 0px;\""))); childrenElements.clear(); childrenElements.add(new DOMElement("#text", "2", new ArrayList<String>(Arrays.asList("")))); if (!(isElementRegionTagPresent(parentElement, element, childrenElements))) { System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName()); return; } // generated assertion in case of RegionTagMatch }
From source file:com.crawljax.plugins.testilizer.generated.photogallery_EXND.GeneratedTestCase44.java
public void checkState31_GeneratedAssertions() { if (!(isElementPresent(By.cssSelector("div#Granny[id=\"Granny\"]")))) { System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName()); return;// w ww . java 2 s .c o m } // generated assertion in case of ElementTagAttMatch element = new DOMElement("IMG", "", new ArrayList<String>(Arrays.asList("id=\"ss_photo\"", "onload=\"javscript:ss_loaddone();\"", "src=\"images/000006_rryky_0.jpg\""))); parentElement = new DOMElement("A", "", new ArrayList<String>( Arrays.asList("href=\".?p=6\"", "id=\"ss_link2\"", "style=\"display:inline;\""))); childrenElements.clear(); if (!(isElementRegionTagPresent(parentElement, element, childrenElements))) { System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName()); return; } // generated assertion in case of RegionTagMatch element = new DOMElement("SPAN", "1", new ArrayList<String>(Arrays.asList("id=\"ss_n\""))); parentElement = new DOMElement("DIV", "", new ArrayList<String>(Arrays.asList("class=\"titlepart\"", "style=\"letter-spacing: 2px; padding-bottom: 1em; margin-bottom: 0px;\""))); childrenElements.clear(); childrenElements.add(new DOMElement("#text", "1", new ArrayList<String>(Arrays.asList("")))); if (!(isElementRegionTagPresent(parentElement, element, childrenElements))) { System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName()); return; } // generated assertion in case of RegionTagMatch element = new DOMElement("SPAN", "2", new ArrayList<String>(Arrays.asList("id=\"ss_n\""))); parentElement = new DOMElement("DIV", "", new ArrayList<String>(Arrays.asList("class=\"titlepart\"", "style=\"letter-spacing: 2px; padding-bottom: 1em; margin-bottom: 0px;\""))); childrenElements.clear(); childrenElements.add(new DOMElement("#text", "2", new ArrayList<String>(Arrays.asList("")))); if (!(isElementRegionTagPresent(parentElement, element, childrenElements))) { System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName()); return; } // generated assertion in case of RegionTagMatch element = new DOMElement("SPAN", "Yourratingsaved!", new ArrayList<String>(Arrays.asList("id=\"rateStatus\""))); parentElement = new DOMElement("DIV", "", new ArrayList<String>(Arrays.asList(""))); childrenElements.clear(); childrenElements.add(new DOMElement("#text", "Yourratingsaved!", new ArrayList<String>(Arrays.asList("")))); if (!(isElementRegionTagPresent(parentElement, element, childrenElements))) { System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName()); return; } // generated assertion in case of RegionTagMatch }
From source file:com.crawljax.plugins.testilizer.generated.photogallery_EXND.GeneratedTestCase46.java
@Test public void method46() { driver.get(url);//from w w w . j av a 2s .c o m //From state 0 to state 27 //Eventable{eventType=click, identification=text Admin Page, element=Element{node=[A: null], tag=A, text=Admin Page, attributes={href=admin.php, title=Login to the Administration Region}}, source=StateVertexImpl{id=0, name=index}, target=StateVertexImpl{id=27, name=state27}} mutateDOMTree(0); checkState0_OriginalAssertions(); checkState0_ReusedAssertions(); checkState0_GeneratedAssertions(); checkState0_LearnedAssertions(); checkState0_AllAssertions(); checkState0_RandAssertions1(); checkState0_RandAssertions2(); checkState0_RandAssertions3(); checkState0_RandAssertions4(); checkState0_RandAssertions5(); driver.findElement(By.linkText("Admin Page")).click(); //From state 27 to state 28 //Eventable{eventType=click, identification=cssSelector input.submit, element=Element{node=[INPUT: null], tag=INPUT, text=, attributes={class=submit, type=submit, value=??????Login??????}}, source=StateVertexImpl{id=27, name=state27}, target=StateVertexImpl{id=28, name=state28}} mutateDOMTree(27); checkState27_OriginalAssertions(); checkState27_ReusedAssertions(); checkState27_GeneratedAssertions(); checkState27_LearnedAssertions(); checkState27_AllAssertions(); checkState27_RandAssertions1(); checkState27_RandAssertions2(); checkState27_RandAssertions3(); checkState27_RandAssertions4(); checkState27_RandAssertions5(); driver.findElement(By.id("loginAdminPass")).clear(); driver.findElement(By.id("loginAdminPass")).sendKeys("editor"); driver.findElement(By.cssSelector("input.submit")).click(); //From state 28 to state 29 //Eventable{eventType=click, identification=text Manage Categories, element=Element{node=[A: null], tag=A, text=Manage Categories, attributes={href=?page=categories}}, source=StateVertexImpl{id=28, name=state28}, target=StateVertexImpl{id=29, name=state29}} mutateDOMTree(28); checkState28_OriginalAssertions(); checkState28_ReusedAssertions(); checkState28_GeneratedAssertions(); checkState28_LearnedAssertions(); checkState28_AllAssertions(); checkState28_RandAssertions1(); checkState28_RandAssertions2(); checkState28_RandAssertions3(); checkState28_RandAssertions4(); checkState28_RandAssertions5(); driver.findElement(By.linkText("Manage Categories")).click(); //Sink node at state 29 mutateDOMTree(29); checkState29_OriginalAssertions(); checkState29_ReusedAssertions(); checkState29_GeneratedAssertions(); checkState29_LearnedAssertions(); checkState29_AllAssertions(); checkState29_RandAssertions1(); checkState29_RandAssertions2(); checkState29_RandAssertions3(); checkState29_RandAssertions4(); checkState29_RandAssertions5(); }
From source file:com.crawljax.plugins.testilizer.generated.photogallery_EXND.GeneratedTestCase6.java
@Test public void method6() { driver.get(url);/*from ww w . j av a 2 s . c o m*/ //From state 0 to state 6 //Eventable{eventType=click, identification=text Admin Page, element=Element{node=[A: null], tag=A, text=Admin Page, attributes={href=admin.php, title=Login to the Administration Region}}, source=StateVertexImpl{id=0, name=index}, target=StateVertexImpl{id=6, name=state6}} mutateDOMTree(0); checkState0_OriginalAssertions(); checkState0_ReusedAssertions(); checkState0_GeneratedAssertions(); checkState0_LearnedAssertions(); checkState0_AllAssertions(); checkState0_RandAssertions1(); checkState0_RandAssertions2(); checkState0_RandAssertions3(); checkState0_RandAssertions4(); checkState0_RandAssertions5(); driver.findElement(By.linkText("Admin Page")).click(); //From state 6 to state 7 //Eventable{eventType=click, identification=cssSelector input.submit, element=Element{node=[INPUT: null], tag=INPUT, text=, attributes={class=submit, type=submit, value=??????Login??????}}, source=StateVertexImpl{id=6, name=state6}, target=StateVertexImpl{id=7, name=state7}} mutateDOMTree(6); checkState6_OriginalAssertions(); checkState6_ReusedAssertions(); checkState6_GeneratedAssertions(); checkState6_LearnedAssertions(); checkState6_AllAssertions(); checkState6_RandAssertions1(); checkState6_RandAssertions2(); checkState6_RandAssertions3(); checkState6_RandAssertions4(); checkState6_RandAssertions5(); driver.findElement(By.id("loginAdminPass")).clear(); driver.findElement(By.id("loginAdminPass")).sendKeys("editor"); driver.findElement(By.cssSelector("input.submit")).click(); //From state 7 to state 8 //Eventable{eventType=click, identification=text Manage Categories, element=Element{node=[A: null], tag=A, text=Manage Categories, attributes={href=?page=categories}}, source=StateVertexImpl{id=7, name=state7}, target=StateVertexImpl{id=8, name=state8}} mutateDOMTree(7); checkState7_OriginalAssertions(); checkState7_ReusedAssertions(); checkState7_GeneratedAssertions(); checkState7_LearnedAssertions(); checkState7_AllAssertions(); checkState7_RandAssertions1(); checkState7_RandAssertions2(); checkState7_RandAssertions3(); checkState7_RandAssertions4(); checkState7_RandAssertions5(); driver.findElement(By.linkText("Manage Categories")).click(); //From state 8 to state 11 //Eventable{eventType=click, identification=cssSelector input.submit, element=Element{node=[INPUT: null], tag=INPUT, text=, attributes={class=submit, type=submit, value=??????Add Category??????}}, source=StateVertexImpl{id=8, name=state8}, target=StateVertexImpl{id=11, name=state11}} mutateDOMTree(8); checkState8_OriginalAssertions(); checkState8_ReusedAssertions(); checkState8_GeneratedAssertions(); checkState8_LearnedAssertions(); checkState8_AllAssertions(); checkState8_RandAssertions1(); checkState8_RandAssertions2(); checkState8_RandAssertions3(); checkState8_RandAssertions4(); checkState8_RandAssertions5(); driver.findElement(By.name("desc")).clear(); driver.findElement(By.name("desc")).sendKeys("contains photos of all the flowers !"); driver.findElement(By.id("name")).clear(); driver.findElement(By.id("name")).sendKeys("flowers"); driver.findElement(By.cssSelector("input.submit")).click(); //From state 11 to state 12 //Eventable{eventType=click, identification=cssSelector a[title="Log Out"], element=Element{node=[A: null], tag=A, text=, attributes={href=?page=logout, title=Log Out}}, source=StateVertexImpl{id=11, name=state11}, target=StateVertexImpl{id=12, name=state12}} mutateDOMTree(11); checkState11_OriginalAssertions(); checkState11_ReusedAssertions(); checkState11_GeneratedAssertions(); checkState11_LearnedAssertions(); checkState11_AllAssertions(); checkState11_RandAssertions1(); checkState11_RandAssertions2(); checkState11_RandAssertions3(); checkState11_RandAssertions4(); checkState11_RandAssertions5(); driver.findElement(By.cssSelector("a[title=\"Log Out\"]")).click(); //Sink node at state 12 mutateDOMTree(12); checkState12_OriginalAssertions(); checkState12_ReusedAssertions(); checkState12_GeneratedAssertions(); checkState12_LearnedAssertions(); checkState12_AllAssertions(); checkState12_RandAssertions1(); checkState12_RandAssertions2(); checkState12_RandAssertions3(); checkState12_RandAssertions4(); checkState12_RandAssertions5(); }