sendKeys doesn't work in my Selenium Webdriver

281 views
Skip to first unread message

Set Kyar Wa Lar

unread,
Oct 4, 2013, 3:35:21 AM10/4/13
to seleniu...@googlegroups.com

First I am trying sendKeys at Selenium IDE Like that

Command waitForElementPresent Target css=.ace_text-input Value=

Command sendKeys Target css=.ace_text-input Value=<?php echo 'Hello World'; ?>

Command click Target id=save_changes Value= 
and it is ok at the Selenium IDE.

But I have a problem at Selenium Webdriver I am writing test for PHP like the following.

$this->assertTrue($this->isElementPresent("css=.ace_text-input"));

$this->sendKeys("css=.ace_text-input", <?php echo 'Hello World'; ?>

$this->click("id=save_changes");

Webdriver never show me an error but in reality <?php echo 'Hello World'; ?> value never type in my test. So, I want to type <?php echo 'Hello World'; ?> at my test. And I am testing Code Editor name is ace_editor and it is just acceptable for sendKeys command. So, Everybody answer welcome to my question.

Bruce MacKenzie

unread,
Oct 7, 2013, 9:51:25 AM10/7/13
to seleniu...@googlegroups.com
It seems Iran into this a few weeks back. Use "type" instead os "sendKeys".

Bruce
--
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-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/bd4c52ff-1118-4a3c-98ed-a7e501a99a31%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages