Allgemeine Fragen/en
Zur Navigation springen
Zur Suche springen
Inhaltsverzeichnis
- 1 Why can't pages be loaded?
- 2 Why is my HTTPS page or page with frames not loaded correctly?
- 3 After a click event on a link, the system does not wait until the corresponding page is loaded
- 4 How can I automate responses to password and certificate requests?
- 5 Is it also possible to take a screenshot at a certain place?
- 6 What does frame support mean?
Why can't pages be loaded?[Bearbeiten]
- Check whether the URL of the website to be tested is correctly specified as the urlToTest environment variable in the corresponding step, test plan or test-suite.
Why is my HTTPS page or page with frames not loaded correctly?[Bearbeiten]
- A test can be executed in different browser types (firefox, iexplore, chrome, iehta). You can find this setting in the variable environment of the execution definition. For HTTPS pages or pages with frames, use iehta and chrome instead of iexplore and firefox. These have lower security settings
After a click event on a link, the system does not wait until the corresponding page is loaded[Bearbeiten]
- If you do not wait for the corresponding page to appear during playback, replace the click event with a clickAndWait event.
- However, this only works if the click actually triggers a page load operation. Especially in modern web applications the click only triggers a JavaScript function, which creates new elements or makes them visible. In this case it is better to wait for the element to appear before the next interaction with a "waitForElementPresent". But beware: if an element with this locator was already there before, you might have to do both: "waitFor-Reload the page" plus "waitForElementPresent".
How can I automate responses to password and certificate requests?[Bearbeiten]
- In some installations (in particular: single sign-on solutions), an input dialog appears that is opened by the operating system and/or the browser and asks for a smart card password, certificate selection or other user information. These dialogs are typically not HTML windows and cannot be operated with the Selenium Plugin.
- To automate these windows, use the AutoIt Library and create a block that waits for such windows and fills them automatically. Such a block is then best started parallel to the actual open session and/or login action. See the AutoIt Library documentation for a concrete example.
Is it also possible to take a screenshot at a certain place?[Bearbeiten]
- The Log ScreenDump block creates a screenshot of the desktop.
What does frame support mean?[Bearbeiten]
- Frames are parts of a web page in which another web page can be displayed. The environment variable "seleniumServerMode" can be used to switch from pages without frames to pages with frames. In case of doubt it should be set to "frameSupport".