I am using Webdriver 2.25.0 and Firefox 14
I have the following textarea:
<textarea id="source-text" placeholder="Start typing your text" style="resize: none; overflow: hidden;"></textarea>
I am identifying this text area in my HomePage object like this:
@FindBy(how = How.CSS, using = "div.myclass textarea")
public WebElement columnLeftTextarea;
What i want to do is simply type some text inside this textarea, by using the following code
homePage.columnLeftTextarea.sendKeys("some text");
This is returning the following error:
Type mismatch Can't assign non-array value to an array
The textarea is correctly defined as when i run
homePage.columnLeftTextarea.getAttribute("placeholder")
i get the correct text
I even tried to do start the browser by setting the capabilities to tnable native events:
FirefoxProfile ffProfile = new FirefoxProfile(new File(generalPropertiesTestObject.getFirefox_profile_template_location()));
ffProfile.setEnableNativeEvents(true);
FirefoxDriver ffd = new FirefoxDriver(ffProfile);
capabilities = ffd.getCapabilities();
But still i am getting the same error. Does anyone have any idea about it?
Try firstly focusing into textarea. I did it using the following code:
and it seems to work just fine.