Tagged Questions
0
votes
0answers
35 views
Disable flash in saucelabs/selenium webdriver?
I am trying to use saucelabs to automate taking screenshots of several sites to make sure that changing code doesn't break things. I'm programming using webdriver for python and need to disable flash ...
1
vote
0answers
61 views
WebDriverException: Message: '' ; Stacktrace: Method get threw an error in [No file name]
I am running selenium test on Grid with jar 2.28.0 and the Firefox version as 18.0
Intermittently I am getting below error in few of my test cases:
self.execute(Command.SWITCH_TO_FRAME, {'id': ...
1
vote
1answer
52 views
How to pass python object from one file module to another file module?
I am trying to implement page object model in python and selenium. For that matter, I have two modules:
LoginPage.py
class LoginPage:
def __init__(self, driver):
self.driver = driver
...
0
votes
1answer
40 views
How to use explicit in selenium?
i am using Selenium to get div value, but the fallowing code is not waiting for the page, just for url. I used time.sleep what is very primitive and totally not flexible. And want to change it on the ...
0
votes
1answer
189 views
Unable to set proxy :selenium.common.exceptions.WebDriverException:Access Denied
I want to use Selenium Webdriver and I am unable to do so because when I run my code, I get the following exception.
My code is very basic and as follows.
from selenium import webdriver
driver = ...
0
votes
1answer
107 views
Alternative of visibility of element located in selenium 2.0 that checks the presence of an element on the DOM?
I have a problem in my framework that instead of using static sleeps I try to wait for a visibility of an element. The thing is that visibilty of element checks the presence of an element on the DOM, ...
0
votes
2answers
74 views
How to Execute the user defined python methods using variables, read from Excel sheet
I have built my reusable framework libraries for ClickLink, TypeInTextBox etc and it sits in different python modules.
When I used the methods directly in the main class like ...
0
votes
2answers
179 views
Selenium Web Driver(Firefox) fails sometimes to find an element by id which is present in the web page
I am using Selenium Web Driver for Fire Fox to automate a web page inPython.
The issue is that sometime for some elements i am getting NoSuchElementException even though the element is present with ...
3
votes
2answers
81 views
How can I count the number of attributes of an element in Selenium Python?
Having the following HTML code:
<span class="warning" id ="warning">WARNING:</span>
For an object accessible by XPAth:
.//*[@id='unlink']/table/tbody/tr[1]/td/span
How can one count ...
1
vote
1answer
249 views
How to get the child elements using Python webdriver
How to get the child elements class name using Python webdriver
I am able to go all td element using find_elements(By.TAG_NAME, "td")
I want to access the child node
I want to get the attribute ...
0
votes
1answer
115 views
How do you remove seconds and milliseconds from a date time string in python
How I can convert a date in format "2013-03-15 05:14:51.327" to "2013-03-15 05:14", i.e. removing the seconds and milliseconds. I don't think there is way in Robot frame work. Please let me know if ...
0
votes
1answer
78 views
How to convert a date format like 'Wed Mar 13 10:10 EDT 2013' to “2013-03-13 10:10” in robot frame work or python [duplicate]
Could any one help me out to covert a date format like
"Wed Mar 13 10:10 EDT 2013" into the format like "2013-03-13 10:10" , I have tried "get time" keyword from Built-in which isn't working in this ...
1
vote
1answer
299 views
Extract link from XPath using Selenium Webdriver and Python?
I'm rather new to Seleniun WebDriver and Python and my question might be kind of basic.
So, I have the following HTML code:
<a class="wp-first-item" ...
1
vote
1answer
61 views
How to get the required content from a JSON string
I have a variable in Robot Frame Work having Json response body in the following format
{
"jsonrpc": "2.0",
"id": "787878",
"result":
{
"content":
[
{
...
-1
votes
1answer
157 views
How to wait until favicon is loaded using Selenium Webdriver
I would like to wait for the page to load completely. I know I could do this by waiting for a page element to load.
But I want something more generic, I assume that the Favicon can be used to ...