Author: kishore
Date: Tue Mar 21 20:21:57 2017
New Revision: 1788024

URL: http://svn.apache.org/viewvc?rev=1788024&view=rev
Log:
Add support for click Radiobutton and Checkbox.

Modified:
    
manifoldcf/branches/CONNECTORS-1196-2/connectors/filesystem/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/filesystem/tests/NavigationUITester.java
    
manifoldcf/branches/CONNECTORS-1196-2/framework/core/src/test/java/org/apache/manifoldcf/core/tests/SeleniumTester.java

Modified: 
manifoldcf/branches/CONNECTORS-1196-2/connectors/filesystem/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/filesystem/tests/NavigationUITester.java
URL: 
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1196-2/connectors/filesystem/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/filesystem/tests/NavigationUITester.java?rev=1788024&r1=1788023&r2=1788024&view=diff
==============================================================================
--- 
manifoldcf/branches/CONNECTORS-1196-2/connectors/filesystem/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/filesystem/tests/NavigationUITester.java
 (original)
+++ 
manifoldcf/branches/CONNECTORS-1196-2/connectors/filesystem/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/filesystem/tests/NavigationUITester.java
 Tue Mar 21 20:21:57 2017
@@ -130,7 +130,7 @@ public class NavigationUITester
 
     // Now, HopFilters
     testerInstance.clickTab("Hop Filters");
-    testerInstance.selectValue("hopcountmode","2");
+    testerInstance.clickRadioButton("hopcountmode","2");
 
     // Repository Paths tab
     testerInstance.clickTab("Repository Paths");

Modified: 
manifoldcf/branches/CONNECTORS-1196-2/framework/core/src/test/java/org/apache/manifoldcf/core/tests/SeleniumTester.java
URL: 
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1196-2/framework/core/src/test/java/org/apache/manifoldcf/core/tests/SeleniumTester.java?rev=1788024&r1=1788023&r2=1788024&view=diff
==============================================================================
--- 
manifoldcf/branches/CONNECTORS-1196-2/framework/core/src/test/java/org/apache/manifoldcf/core/tests/SeleniumTester.java
 (original)
+++ 
manifoldcf/branches/CONNECTORS-1196-2/framework/core/src/test/java/org/apache/manifoldcf/core/tests/SeleniumTester.java
 Tue Mar 21 20:21:57 2017
@@ -284,6 +284,25 @@ public class SeleniumTester
       waitFindElement(By.cssSelector("[type=\"button\"][value=\"" + buttonText 
+ "\"]")).click();
     }
   }
+  
+  /**
+   * Click on a radio button with a specific value
+   * @param name
+   * @param value
+   */
+  public void clickRadioButton(String name,String value)
+  {
+    waitElementClickable(By.xpath("//input[@type='radio'][@name='" + name + 
"'][@value='" + value + "']")).click();
+  }
+
+  /**
+   * Click a checkbox with the specified name
+   * @param name
+   */
+  public void clickCheckbox(String name)
+  {
+    waitElementClickable(By.xpath("//input[@type='checkbox'][@name='" + name + 
"']")).click();
+  }
 
   /**
    * Check if a alert box appeared in the browser.s


Reply via email to