Wednesday, November 19, 2014
On 1:03 AM by Unknown No comments
Answer 21: This entirely boils down to operations you are carrying out with
Selenium. Though you would definitely be using following Selenium Commands more
often –
- Open: opens a web page.
- click/clickAndWait: click on an element and waits for a new page to load.
- Select: Selects a value from a drop down value.
- verifyTitle/assertTitle: verifies/asserts page title.
- verify/assert ElementPresent: verifies/asserts presence of element, in the page.
- verify/assert TextPresent: verifies/asserts expected text is somewhere on the page.
Answer 22: Html id and name can be used as
it is in selenium IDE.
For example Google search
box has name – “q” and id – “list-b” and they can be used as target in selenium
IDE
Answer 23: XPath is a way to navigate in xml document and this can be used to
identify elements in a web page. You may have to use XPath when there is no
name/id associated with element on page or only partial part of name/id is
constant.
- Direct child is denoted with - /
- Relative child is denoted with - //
- Id, class, names can also be used with XPath –
- //input[@name=’q’]
- //input[@id=’lst-ib’]
- //input[@class=’ lst’]
If only part of
id/name/class is constant than “contains” can be used as –
- //input[contains(@id,'lst-ib')]
Subscribe to:
Post Comments (Atom)
Search
Popular Posts
-
Sample Selenium IDE Test Script by Recording: We will use the Mercury Tours website as our web application under test. It is an online flig...
-
Locating GUI Elements Locating elements in WebDriver is done by using the “findElement(By. locator ())” method. The “locator” part of the co...
-
Selenium Commands – Selenese Selenese commands can have up to a maximum of two parameters: target and value. Parameters are not required al...
-
Answer 75 : If you want to see all options available while starting Selenium server then you should use option “-h” while starting Seleni...
-
Answer 44 : You can change default behavior of Selenium IDE > element locator preference by crating JS file with following– Locato...
-
Answer 24 : CSS location strategy can be used with Selenium to locate elements, it works using cascade style sheet location methods in wh...
-
Answer 54 : Selenium core is the core JS engine of Selenium which executes tests on browser, but because of same origin policy it needs t...
-
Answer 69 : You can use Selenium RC on any system which is capable I running Java. Hence you can use Selenium RC on MAC and UNIX machines...
-
Answer 34 : This is because Selenium IDE does not support execution of test in any other language than Selenese (language of Selenium IDE...
-
Answer 63 : Yes you can instruct Selenium Server to launch just one window. To do so you must specify – singleWindow while starting the ...
Shaik. Powered by Blogger.
0 comments:
Post a Comment