Vishal Thanks for spending time, however the below solution does not work. Here is the actual code
selenium.select("//*[@id='PRIMARYSTATEPROVINCE']", "label=CA");
and here is how I defined based on your update
selenium.click("PRIMARYSTATEPROVINCE"); -- Is Element which we have to Select
selenium.click("CA"); --- Is a option in the above mentioned element.
Still I encounter the same issue as below.
FAILED: createCampaign
com.thoughtworks.selenium.SeleniumException: ERROR: There was an unexpected Alert! [No data received from server]
at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:112)
at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:106)
at com.thoughtworks.selenium.DefaultSelenium.click(DefaultSelenium.java:186)
at ondemandmkt_testcases.OndemandMktCreateCampaign.createCampaign(OndemandMktCreateCampaign.java:93)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Thanks
Joseph