public void enterDataIntoPickerWheel(String xpathSelector, String text,int index) {
waitForElement(By.xpath(xpathSelector));
driver.findElements(By.xpath(xpathSelector)).get(index).sendKeys(text);
}
Here “driver” is of type IOSdriver.
It used to work perfectly fine, but not sure why the code doesn’t compile now. I am using Java 1.7 as my compiler. Here is my Java and mvn versions.
Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T12:57:37+01:00) Maven home: /Users/username/Documents/Programs/apache-maven-3.3.3 Java version: 1.7.0_79, vendor: Oracle Corporation Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/jre Default locale: en_US, platform encoding: UTF-8 OS name: “mac os x”, version: “10.11.1”, arch: “x86_64”, family: “mac”
Am I missing something here??