Difference between "type" and "typeKeys"

1,777 views
Skip to first unread message

Ripon Al Wasim

unread,
Jan 26, 2012, 1:38:57 AM1/26/12
to seleniu...@googlegroups.com
Hi All,

What's the difference between     selenium.type("arg0", "arg1");  and   selenium.typeKeys("arg0", "arg1"); ?

br,
Ripon Al Wasim

Mark Collin

unread,
Jan 26, 2012, 4:59:26 AM1/26/12
to seleniu...@googlegroups.com

.type() programmatically populates the value attribute using JavaScript whereas .typeKeys() emulates a user actually typing.

 

.typeKeys() will trigger JavaScript events in the majority of cases whereas .type() wont.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.


-- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error please notify postm...@ardescosolutions.com
Reply all
Reply to author
Forward
0 new messages