Tagged Questions
0
votes
0answers
9 views
Unable to select popup window/iframe using selenium webdriver in python
I clicked on a link which opens a small window/popup/iframe and the popup window has Xpath:
//html/body/div[2]
ie. it has no window_id but in firebug the identifier shows the window as a <div ...
0
votes
0answers
28 views
How to prevent css and img download in selenium
Is it possible to prevent img and css download in phantomjs webdriver(selenium)?
0
votes
1answer
33 views
find_elements_by_partial_link_text(link_text) Selenium Python
Got this issue:
I'm trying to find the last link on webpage:
try:
elems=self.br.find_elements_by_partial_link_text(category)
except NoSuchElementException:
print 'The ...
0
votes
0answers
20 views
Selenium2Library: move mouse position for click
I am new to the whole Robotframework and the Selenium2Library and I have a problem.
I have two divs: rasterContainer and anlageContainer.
They have the same x- and y-offset. The anlageContainer has a ...
1
vote
1answer
26 views
How to click links one by one with Selenium webdriver and Python
Site has top menu with 6 links. I can get list of this links like this:
links = browser.find_elements_by_css_selector(MENU_LINKS_CSS_SELECTOR)
After this I need to click this links one by one. If I ...
0
votes
0answers
15 views
Cant close processes using selnium threads
I've been at this problem for a while now and i cant solve it. Im making subprocesses, and then those subprocesses open more processes ( actually selenium web-drivers ). The webdriver is prone to ...
0
votes
0answers
20 views
Selenose - django, selenium
So I'm tryig to use this tool:
- http://selenose.readthedocs.org/en/latest/
No go. Still my driver is connecting wrong server. Except that documentation is incomplete or maybe even erroneous, that's ...
0
votes
1answer
47 views
Browser Simulation and Scraping with windmill or selenium, how many http requests?
I want to use windmill or selenium to simulate a browser that visits a website, scrapes the content and after analyzing the content goes on with some action depending of the analysis.
As an example. ...
0
votes
0answers
40 views
Python - Selenium unresponsive and blocking the program
I am using Selenium with Python. After multiple find and click operations, the script stops executing. When I check, the Selenium will be blocking the entire code, either at a click operation or at a ...
0
votes
0answers
21 views
How to import Selenium2Library in Eclipse
import Selenium2Library.Selenium2Library in eclipse results in the following error.
Traceback (most recent call last):
File ...
0
votes
1answer
76 views
How to pass variable inside find element method in Selenium , Python
I need to do some changes in below line :
browser.find_element_by_css_selector("[href='/new/ank/abgh/add/']")
Now I have create a string variable lStr and assign href value to it:
...
0
votes
2answers
65 views
Webdriver error: “No alert is present” after UnexpectedAlertPresentException is thrown
I'm trying to test a webapp I'm developing. I'm using the Firefox driver against Firefox 22.0.
At one point, a modal dialog may pop up (a Javascript prompt()). If it does, I want to enter some text ...
0
votes
1answer
53 views
Make an assertion that error text is correct
When testing website login without credentials we're getting a tooltip message that email and password should be entered. I need to make an assertion that the text of the error is relevant when we try ...
2
votes
2answers
47 views
How to set Selenium Python WebDriver default timeout?
Trying to find a good way to set a maximum time limit for command execution latency in Selenium Python WebDriver. Ideally, something like:
my_driver = get_my_driver()
my_driver.set_timeout(30) # ...
1
vote
1answer
60 views
ImportError: No module named base
I'm trying to implement PageObject pattern for my first Login test. While running it I'm receiving the following error:
>> py.test -v test_login.py
============================= test session ...