Showing posts with label type command. Show all posts
Showing posts with label type command. Show all posts

"How to Store and Reuse Information in Selenium IDE ?" This question is asked by one of my blog reader through Ask A Question page so let me share it with all of you. It might helps you too for software testing using selenium IDE. Question is as bellow.

Question : 
Using Selenium IDE, how do you:

Selenium IDE "sendKeys" command

"sendKeys" command works like type command in selenium IDE but there are 2 more functions as bellow in "sendKeys" command which are not available in "type" command. Generally "sendKeys" command is very useful in auto complete text boxes or combo boxes which require explicit key events.

1. "sendKeys" command will not replace the existing text content in the text box where as "type" command

"type" command

"type" command is useful for typing keyboard key values into text box of software web application. you can also use it for selecting values of combo box.

New Test
Command Target Value
open http://www.software-testing-tutorials-automation.com/
type name=email youremailid@mail.com
click css=input[type="submit"]

In this example, First it will type text "youremailid@mail.com" into text field "name=email" of software web page and then it will click on button element "css=input[type="submit"]".