Wednesday, November 19, 2014
On 1:00 AM by Unknown No comments
Answer 78: Firefox and IE have browser modes which are not restricted by java
script’s same origin policy. These browsers are known as browsers with elevated
security privileges. In case of Firefox it is known as chrome (It’s not the
Google browser) and in case of IE it is known as iehta.
Answer 79: You need to know the Window ID of pop window to be able to work
with them.
First you need to bring
control on pop up window; execute selenium commands there, close the pop up
window and then bring control back to main window. Consider following example
where click on an image brings a pop up window –
// click on image brings
pop up window
selenium.click("css=img");
// wait for pop up
window identified using anchor target "ss"
selenium.waitForPopUp("ss",
getWaitPeriod());
selenium.selectWindow("ss");
// some more operations
on popup window
// Close the pop up
window and Select the main application window
// Main window is
selected by adding null as argument
selenium.close();
selenium.selectWindow("null");
// continue with
usual operation
Answer80: This message simply means that Selenium is not able to launch
Firefox browser as it is already running on your system. To overcome this you
should close all running instances of Firefox browser.
You should also check
your system process if there is any hidden Firefox profile running which is not
visible on screen. You should kill all Firefox processes and following this
your tests should run smooth
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...
-
Answer 75 : If you want to see all options available while starting Selenium server then you should use option “-h” while starting Seleni...
-
Answer 60 : While using java you need to create instance of DefaultSelenium class and pass it four parameters – selenium = ne...
-
Answer 51 : Selenium RC is an offering from SeleniumHQ which tries to overcome following draw backs of Selenium IDE – Able to execute...
-
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 18 : You need to use context menu to add check points to your Selenium IDE tests Answer 19 : There are two ways to edit tests...
-
Answer 15 : Yes, you can first record individual test cases and then group all of them in a test suite. Following this entire test suite ...
-
Answer 38 : You could XPath checker - https://addons.mozilla.org/en-US/firefox/addon/xpath-checker/ to test you XPath locators and Fi...
-
Answer 44 : You can change default behavior of Selenium IDE > element locator preference by crating JS file with following– Locato...
Shaik. Powered by Blogger.
0 comments:
Post a Comment