Tagged Questions
1
vote
0answers
20 views
selenium webdriver on virtual machine
I'm working on a virtual machine using Selenium WebDriver. I'm trying to run tests on the machine I work on (again, virtual) and I'm getting a NoClassDefFoundError on the line where I instantiate my ...
0
votes
0answers
17 views
Robot Framework - Run Firefox with system proxy
Ok so I got this code:
${SERVER} http://www.google.pt/
${BROWSER} firefox
${DELAY} 0
*** Keywords ***
Open Browser To Google
Open Browser ...
-1
votes
2answers
32 views
Selenium object identification
I am using Selenium webdriver to test my application & i am facing difficulties in identifiying button on the same. the code snippet is like :
<input type="submit" onclick="return sign(this);" ...
0
votes
3answers
38 views
How to make an assertion based on class name in web driver
The HTML is as follows:
<section class="my-account-box-element">
<span class="item icon-home icon-color-1"></span>
</section>
Need to make an assertion based on the ...
0
votes
0answers
82 views
Selenium : webdriver did not recognized the webelement
Can any one figure out this issue
I generated the script for login page, after login i wanted to log out the app or perform some action on that current page but i failed to do so. I performed by ...
0
votes
1answer
26 views
Toggle Native Events Capability of WebDriver at run time
Mouse Actions like Hover-over an element using 'Action Builder' does not seem to be reliable while running on Internet Explorer, when 'Native Events' is enabled. (Chrome and Firefox works perfectly)
...
1
vote
2answers
71 views
Selenium Webdriver - How to deal with the html page Element/Count after delete
I have been trying to fix the problem i am facing, but i ran out of ideas so I need help here.
I have a very simple page:
╔════════════════════════════╦═══════════════════════════════════════╗
║ ...
0
votes
2answers
42 views
How to find attribute values using regular expression with Selenium WebDriver?
The HTML is as follows:
<div class="item link-color-1
automated link-track logout-link"
data-track-category="Logout"
data-track-action="Logout from /myaccount/mymoney/cashier"
...
3
votes
1answer
63 views
Selenium webdriver verifying the text displayed in one row
I encountered a problem when trying to check if some text on a page is displayed in one row,
I mean the html does not contain br tag, but because of resolution / font size - the text is wrapped to a ...
-1
votes
4answers
32 views
How to click a link inside a webtable using WebDriver
The following code is the HTML for
<table cellspacing="0" cellpadding="0" border="0" width="192">
<tbody>
<tr>
</tr>
<tr>
<td ...
0
votes
1answer
71 views
How to group test cases in testng?
I want to launch two browsers at a time with different parameters. I've written Test suite like below. but, it is launching 8 browsers at a time (As I've mentioned parallel='tests' it is launching ...
0
votes
1answer
55 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
2answers
27 views
source code for Firefox WebDriver (firefox extension)?
When I use Selenium 2(Webdriver) with the Firefox driver, a Firefox extension is loaded into Firefox. I would like to see the source code of this Firefox extension and modify some things. I tried ...
0
votes
1answer
68 views
com.thoughtworks.selenium.SeleniumException: ERROR: Command execution failure
com.thoughtworks.selenium.SeleniumException: ERROR: Command execution failure. Please search the user group at https://groups.google.com/forum/#!forum/selenium-users for error details from the log ...
0
votes
1answer
55 views
How to click on an hidden drop down menu element using webdriver, which is not a select
I want to click on delete which is in the sub menu.
I tried the below code, but nothing happens.
wd_handle.execute_script("document.getElementById('optionPanel').hidden=false;")
...
1
vote
1answer
79 views
Selenium 2 driver.findElement()
How is it possible that
driver.findElement(By.cssSelector("input[id*='supplierOps_input'][class*='ui-autocomplete-input']"));
throw this exception : org.openqa.selenium.NoSuchElementException : ...
0
votes
1answer
69 views
How do use cut/paste shortcuts in selenium webdriver in C#
I'm using Selenium Webdriver and C# to write an automated test that will test that the keyboard shortcuts work on our app. This works for copy/paste:
public static void CopyPasteShortcut(string ...
-3
votes
0answers
60 views
How to get the complete class attribute value using webdriver
When i try to get the class attribute value using the following
<div class="Example Example45">
driver.FindElement(By.XPath("Example Xpath")))).GetAttribute("class");
I get only Example as ...
1
vote
1answer
115 views
clicking on image using selenium webdriver java?
I'm trying to click on mage which is in a table cell, image doesnot have id, classname etc.
The img html is:
img src="/Framework/images/moredetails.gif"
I am using the below CSS path:
html body ...
2
votes
1answer
98 views
Can Selenium Webdriver open browser windows silently in background?
I have a selenium test suite that runs many tests and on each new test it opens a browser window on top of any other windows I have open. Vary jarring while working in a local environment. Any to tell ...
2
votes
1answer
205 views
Chromedriver is extremely slow on a specific machine using Selenium Grid and .net
Overview:
Chromedriver works normally on one machine but extremely slowly on two other identical machines.
Setup:
Selenium Webdriver using .Net for coding and Selenium Grid for distributing the ...
0
votes
2answers
212 views
Selenium WebDriver Stale Element Reference Exception
I have the following code in a Selenium 2 Web Driver test which works when I am debugging but most of the time fails when I run it in the build. I know it must be something to do with the way the page ...
-1
votes
3answers
135 views
Xpath/ search input node by text
I have a search box (<input> element), and I try to get the element by the text that written into it.
I try to do the next:
// input [@value= "my text"]
but it doesn't work (just to be ...
0
votes
3answers
126 views
handling submenu item with webdriver selenium
I want to click submenu item using selenium webdriver which is invisible bydefault.
It becomes visible on mousehover .
I tried with some code and it is giving error as shown below
Caused by: ...
0
votes
0answers
45 views
AndroidDriver “NoClassDefFound” errors occur during Runtime but not on Compile time
Whenever I run tests, I get the following error, "NoClassDefFound" AndroidDriver.
There are no errors during Compile time but happens only on Runtime. (I included the jar file ...
0
votes
0answers
53 views
Selecting text in Chrome or Firefox WebDriver
Problem is as follows: I'm unable to select text in Chrome Driver and Firefox Driver.
Code is following:
Actions action = new Actions(driver);
action.moveToElement(elementWithText, 10, ...
0
votes
0answers
108 views
Jbehave with TestNG and Selenium WebDriver
I am trying to develop a Jbehave scenario with testNG and webdriver.
In our normal development (not using JBehave), we annotate our testNG test cases with @Test and @WebTest.
@WebTest is annotation ...
1
vote
1answer
76 views
How do you select elements in selenium that have a period in their id?
I am trying to write code that will select all options for an HTML drop-down menu. I have written the following code which I believe should work.
public void testSelectMultipleOptions () {
// ...
-1
votes
1answer
73 views
ERROR: Caught exception [ERROR: Unsupported command [addSelection |]
I am using selenium web driver with C# and on trying to select an item on the available list I am receiving an error as ERROR: Caught exception [ERROR: Unsupported command [addSelection | . Can ...
0
votes
1answer
57 views
Print console window to a text file, java
I wanted to ask if it is possible to print my automated tests' console window to a text file. I'm new to webdriver and java and so far I have got a print out using the code below. Any help would be ...
0
votes
1answer
144 views
Unable to perform Drag and Drop using selenium WebDriver
I am trying to perform dragAndDrop functionality.
I tried with dragAndDrop and clickAndHold also. I am able to drag the object to destination, but after that the object comes back to the source ...
1
vote
2answers
64 views
isElementPresent is very slow in case if element does not exist.
I am using below code to check for element on my web page
private boolean isElementPresent(By by) {
try {
driver.findElement(by);
return true;
} catch (NoSuchElementException ...
0
votes
1answer
152 views
Webdriver How to wait until the element is clickable in webdriver C#
There is a block Ui which covers all the elements for a few seconds after the Element have been generated in the browser because of this i facing a problem ,Since element has come into existence the ...
0
votes
1answer
76 views
AjaxElementLocatorFactory in Webdriver C# Page object model
Is there an equivalent to AjaxElementLocatorFactory in C# webdriver ,I kept searching and i keep coming up java related example and documentation . Can some tell where can i find documentation or some ...
0
votes
0answers
45 views
Logging to Selenium2 node when running using hub / remote webdriver
We have set up our tests to run on Sauce Labs. On Sauce Labs, there is a selenium server log. If there are exceptions in the test, the test's stack trace and debugging information is printed in the ...
1
vote
2answers
66 views
Explicit Waits in page object model
I am trying to use the Explicit Waits in page object model to test a single page app , The problem i am facing is that the Explicit wait starts checking for the element as soon the page is called up ...
0
votes
1answer
64 views
Fitnesse + WebDriver: any working solution?
Could you please tell me if there were any attempts to integrate Fitnesse and Selenium WebDriver? I'm looking for something like Selenesse (https://github.com/marisaseal/selenesse), but for WebDriver, ...
0
votes
0answers
65 views
WebDriver waits for a long time, but no error in complilation
WebDriver enters into the <iframe> and does these things.
Now as the script i've written, webdriver has to come back to default content. I used switchTo().defaultContent(). But WebDriver is ...
0
votes
1answer
51 views
Failed to perform procedding step after javascriptExecutor performed
I want to do Mouse Hover to perform some task in my application. I did that by using the javascriptExecutor. Before get into my application i tried in some open application. Below is the used code
...
0
votes
1answer
74 views
Regular expression is not working for TestNg dependsOnMethods
I am trying to use Regular Expression for TestNg dependsOnMethods, but TestNg is not identifying the method. As I had gone through the TestNg documentation we can use Regular Expressions for ...
0
votes
2answers
110 views
WebDriver is unable to locate elements. But it locates when i directly access the webpage
Automation: Booking bus ticket
Description:
WebDriver is unable to locate the elements when i enter into the
webpage (passengerDetails)
But when i access that page (passengerDetails) directly, it ...
0
votes
4answers
243 views
Unable to locate an element using Selenium WebDriver 2.31 (JRE 7)
I'm trying to automate a scenario which books a bus ticket in a website. I'm using Selenium WebDriver with Eclipse and when i try to locate the element, i.e. 'Passenger name', no compilation errors, ...
0
votes
0answers
70 views
webdriver chromedriver unable to click jquery mobile button
I am trying to test jquery mobile app using webdriver(ChromeDriver). Below is the code sample
driver.get("http://localhost:8888/m/index.html");
new WebDriverWait(driver, ...
0
votes
3answers
319 views
Start Selenium test cases using jenkins
I have prepared a test cases using selenium webdriver and I ran locally using MSTEST and it works fine and now I would like to move my test cases to JENKINS, and when i run from JENKINS it says ...
1
vote
0answers
130 views
using webdriverwait on a particular IWebElement
I am applying the selenium webdriverwait method to a particular IWebElement to fetch some child elements of this IWebElement when they are available. This is my code...
WebDriverWait wait = new ...
0
votes
1answer
210 views
How to move cursor in Selenium Webdriver
EDIT:
okay, i have checked the code and its rendering out by a jquery widget.
END
I am trying to move the cursor to <a \>, but the problem is that the element is not rendered until i move ...
0
votes
1answer
134 views
Click on <a href - element is not currently visible
whats wrong with the below code, i am trying to click on a as shown in below html code and i am getting element is not currently visible and even though i put to sleep for few seconds to see whats ...
0
votes
1answer
117 views
Gmail compose section cannot automate using WebDriver with Java
I want to automate Gmail compose section. But I can't write email address in To section, Subject section and Body section using WebDriver (java). Can any one help me why this happen? I have used the ...
-1
votes
3answers
80 views
how to handle page not found or displayed exception
I am creating test cases using web driver in java. I need to catch situation if desired url is not navigated.Follow is the code
try{
driver.get("url");
} catch(Exception e) {
...
0
votes
2answers
111 views
selenium - how can you find an element using a parent element?
I am using selenium as a web scraper and would like to locate a number of tables and then for every table (by looping) locate an element inside that table (without going through the entire document ...