Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Selenium on checkBox

    Hi,
    I have check out the selenium ide .js, It work pretty well on list grid row item and button item. Just to remind that I cannot get it work on checkbox item. Here is a testcase

    Code:
    package com.example.tests;
    
    import com.thoughtworks.selenium.*;
    import java.util.regex.Pattern;
    
    public class seleniumTestCase extends SeleneseTestCase {
    	public void setUp() throws Exception {
    		setUp("http://www.smartclient.com/#colorPicker", "*chrome");
    	}
    	public void testSeleniumTestCase() throws Exception {
    		selenium.open("http://www.smartclient.com/#colorPicker");
    		selenium.click("scLocator=//DynamicForm[ID=\"pickerForm\"]/item[name='$540simple'][Class=\"RadioItem\"]/element");
    		selenium.click("scLocator=//DynamicForm[ID=\"pickerForm\"]/item[name='$540complex'][Class=\"RadioItem\"]/element");
    	}
    }
    The UI did not change when the test case executed, please take a look
Working...
X