Devarajan S
2016-07-21 14:42:17 UTC
Hi, I have started learning Selenium recently. When I was trying to work
with drop-down list, I faced an issue like "The constructor
Select(WebElement) is undefined". Using Selenium-standalone-server-2.53.1
It is a very simple and straightforward program as below:
package Lab1;
import org.openqa.jetty.html.Select;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
public class Forms {
public static void main(String[] args) {
// TODO Auto-generated method stub
WebDriver d = new FirefoxDriver();
d.manage().window().maximize();
d.get("https://www.formsite.com/example/conference-signup-form/");
WebElement element = d.findElement(By.id("RESULT_RadioButton-17"));
Select s = new Select(element);
d.close();
}
}
Could any one please help me to proceed further?
Thanks,
Devarajan
with drop-down list, I faced an issue like "The constructor
Select(WebElement) is undefined". Using Selenium-standalone-server-2.53.1
It is a very simple and straightforward program as below:
package Lab1;
import org.openqa.jetty.html.Select;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
public class Forms {
public static void main(String[] args) {
// TODO Auto-generated method stub
WebDriver d = new FirefoxDriver();
d.manage().window().maximize();
d.get("https://www.formsite.com/example/conference-signup-form/");
WebElement element = d.findElement(By.id("RESULT_RadioButton-17"));
Select s = new Select(element);
d.close();
}
}
Could any one please help me to proceed further?
Thanks,
Devarajan
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/72e439d3-c18c-4fd8-8339-aebfed8a2f36%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/72e439d3-c18c-4fd8-8339-aebfed8a2f36%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.