Tagged Questions
Selenium is a popular open-source tool for automating web browsers. When using this tag, also include other tags for the specific components you are using, e.g. selenium-webdriver for the language bindings, selenium-ide, selenium-grid, etc.
0
votes
0answers
4 views
Protractor Test Result variations
I am working with protractor in some projects and when i run projects there are some differences in the messages at the end of the successful test run. In one test i have written the tests normally ...
0
votes
0answers
4 views
Store PHPUnit test output into a variable to be able to send results in an email
I hope this makes sense. Is it possible to store the exact output that is in the result of a phpunit test into a variable, so that it can be sent out to emails?
So that the same console output is ...
0
votes
0answers
10 views
python - selenium change frame not working
im trying to navigate a webpage so as to download some csv files. The thing is that there is a dropdown and everytime you change it the page reloads. So im trying to use selenium so as to get work ...
0
votes
2answers
12 views
Selenium Driver Service not found exception
I am new to Selenium. While going through simple tutorial, I got stuck with above exception. The error is related in initialization itself:
[TestInitialize()]
public void MyTestInitialize()
{
...
0
votes
0answers
8 views
Cannot assign an inst variable in Switch “--user-data-dir” in Selenium Wedriver Chrome
I have the following code and i want to create a user Directory with the name 'mydir' where chrome should output console logs, but wat happens is it creates a directory #{dir} instead. I also tried ...
0
votes
2answers
18 views
Selecting Options from a Drop Down Menu in C# using Selenium
I am trying to select a specific option in a drop down menu. My current code highlights the selection I want, but moves on and does not keep the value in the field after "selecting" it. I want to ...
-1
votes
0answers
5 views
Unique active IE broswer sessions and all needs to be active at the same time
I need to automate 5 users logging in to application using IE Browser (application allows only 1 login at any given point) and each user needs to be active once logged in successfully. Since ...
1
vote
1answer
18 views
Selenium C#: Store element's position on graph as a variable
I want to store the position of a circle from this graph as a variable, so I can compare it to the position saved in the database.
<circle class="" ng-touch="manualGraph($event, c, 'left')" ...
0
votes
0answers
15 views
Unable to read excel if cell/column has drop down list enabled for Selenium webdriver TestNG
I am using following function to read data from excel for selenium webdriver test. As the data sheet have hundrend of rows to be executed, it needs dropdowns to select values for specific cell which ...
5
votes
0answers
23 views
Is there a way to stop queued JUnit tests and still keep the JavaFX Gui running?
I'm writing a program that sets up a GUI to start JUnit test scripts that utilize Selenium WebDriver in Java. The GUI sets up a queue of JUnit tests in the background (or so i believe). On the GUI, I ...
0
votes
1answer
16 views
http.request in intern functional test
I am trying to post to a url to get a username and password so I can log into my website to do functional testing. I start up selenium server and run this basic test with a request to a posting ...
2
votes
2answers
28 views
Quickly get class attribute of every WebElement with Selenium in Java
I'm looking to get the class attribute of every WebElement on the page quickly with selenium. Currently, I'm doing the following:
allElements = new ...
1
vote
1answer
18 views
Protractor, login to asp,net MVC login page, wait for default page then , redirect to angular page and do tests…how?
I'm trying to implement Protractor test on my MVC Project that we are slowly converting to Angular
I login on a MVC login page, enter the login and password, Click login, then I need to wait for the ...
1
vote
1answer
14 views
Select element by Class Name in a page with multiple elements - Selenium and C#
I 'm using Selenium WebDriver + C # to automate a test in a report. This report has a table with multiple columns and rows and each cell in this table has the class name composed by a name and a ...
-1
votes
1answer
17 views
Parsing Javascript Data Object in Java
Hello i need help in parsing an object that is being return to java. I am running some automated tests using selenium. In my test i am using the framework to call javascript functions and what i am ...
0
votes
0answers
25 views
Screenshot Exception: Screenshot has been taken
Here is the Stack Trace of the PhantomJS Session. It randomly does this. I see that it says: Caused by: org.openqa.selenium.remote.ScreenshotException: Screen shot has been taken. The code works ...
1
vote
0answers
19 views
Fail Upload file in Selenium webdriver using Robot class
i am pressing at open button , that brings the windows dialog , and i want to select from it an image to upload .
(driver.findElement(By.id("myID")).sendKeys("C:\\myPhoto.jpg"); NOT WORKING )
i ...
0
votes
0answers
12 views
Can bounds(co-ordinates) be used while identifying an element on an Android App?
Can something like this work? Well, it's not working for me. Guys, what's the right-est way of making it work? Need Help (Appium version - 1.4.0.0 and Selenium 2.4.5)
...
0
votes
1answer
16 views
can i work on selenium and android in same workspace
For a project i am writing selenium test cases for automation.On the other hand for other project i am designing a page in android.
I have created some part of page in android and now i have an ...
0
votes
1answer
22 views
Java Selenium WebDriver with Yandex
At the moment, I use Firefox as browser for my Java Application with Selenium. But Firefox is slow.
Is it possible to use Yandex as browser? Didn't find anything in Google. Does Selenium supports ...
1
vote
1answer
21 views
Chrome driver information in console
Im using ChromeDriver in my selenium tests, in console Im getting:
Starting ChromeDriver 2.15.322448 (521791b310fec1797c81ea9a20326839860b7d3) on port 15823
is there any way to skip or not show ...
2
votes
4answers
33 views
How to Pass Dynamic Values in Xpath
This is my First Question in this blog.
Am working on Selenium with C# Automation and have hit a road block. I need to click on a Checkbox which is not static and the ID is also not static so i have ...
0
votes
0answers
24 views
multiple values selection is happening in IE WebDriver not in Chrome driver
I have tried to select the multiple values in optional box , i have used the below code to select the values , the selection is happening on IE WebDriver But while using the same code on Chrome ...
0
votes
0answers
11 views
Selenium IDE search for hyperlink via verifyElementPresent
I want to search if my webpage contains the text 'Χ3/8-6-2015'
The text in in a hyperlink with the detailed structure as follows:
<a id="frmMain:details:case_docs_table:3:doc_id" ...
0
votes
0answers
13 views
Web Driver and Tor execution in java
I am able to connect to tor using Firefox driver, but i want to know if i can connect to tor using phantomjs or html-unit driver?
for pantomjs i tried the below code
String[] phantomArgs = new ...
0
votes
0answers
6 views
SeleniumHQ, reg ex to extract number after string, plus redirect
I'm trying something very easy...and failing at it :(
At one point of my Selenium code I need to extract the current page location, something like
http://localhost:8000/app_dev.php/project/show/64
...
0
votes
0answers
13 views
Selenium executeScript fails sometimes
i've created the following function to click elements
private WebDriverWait wait;
public void clickElement(By element) throws InterruptedException {
// wait element is clickable
...
0
votes
0answers
21 views
in datadriven, how to rerun failed tests(rows in excel) alone
I have dataprovider where it reads excel file , each row as one test case data, when I ran this testng test which uses dataprovider for data.
Is there a way to run only failed tests(in the excel ...
0
votes
2answers
38 views
click a menu option using selenium
I have a menu dropdown like this.
Using selenium i need to move the mouse to menu item Documentation and click the option App Configuration from that.
mouse hover is working fine.But am not able ...
0
votes
1answer
11 views
Capybara: method 'page' not working for a created module
I am using Cucumber with Selenium webdriver, Ruby 2.0.
When I use simple def's everything is ok, but when I tried to create module
module ELEM_TEXT_CONVERTING
def self.convert(element1, element2)
...
0
votes
2answers
48 views
Can anyone please help me with the following scenarios I want to use with if/else conditions. I'm using java with Testng Eclipse
I want to click on 'compose' button in gmail inbox page.
but my script not able to click on compose button although I have given valid username and password, so anyone please help me I am new to ...
0
votes
1answer
30 views
Compound classes stored in an array are not accessible in selenium java
What my issue is after clicking on a button it shows some 6 options and i need to store the compound class name of those options since i need to click on each of those options .But when i am trying to ...
-2
votes
1answer
23 views
Click() is not perfroming on Fb message(left panel) and Home button
I tried different xpath (relative and absolute) and perform .click() on them in Facebook message (left panel) and Home button on upper nav bar but the element is highlighted (like when you hover the ...
0
votes
1answer
45 views
How To Perform Multiple Radio Button Click in Selenium Webdriver
How to make condition to perform multiple radio button click (see image below)...?
multiple radio button click
I've tried for hours, but I got only single radio button click (see attached image)
...
1
vote
2answers
28 views
Select hidden Unordered List element with Selenium WebDriver, Java
This is the HTML code:
<ul id="personalBar">
<li id="upload" style="display:none;"></li>
<li id="personal">
<span class="translate"></span>
...
1
vote
2answers
28 views
Find checkbox and add text
I would like to add in the secondary text field at this website a text string.
My selenium method looks like the following:
public void addSecondaryText(String string) {
//click secondary button
...
2
votes
2answers
44 views
Using Selenium and Python, how to check whether the button is still clickable?
so I am doing some web scraping using Selenium with Python and I am having a problem. I am clicking a Next button to move to the next page on a certain website, but I need to stop clicking it when I ...
0
votes
1answer
20 views
Posting data on website using Mechanize Nokogiri Selenium
I need to post data on a website through a program.
To achieve this I am using Mechanize Nokogiri and Selenium.
Here's my code :
def aeiexport
# first Mechanize is submitting the form to ...
0
votes
0answers
26 views
Unable to register VM node using Selenium Grid
I am unable to register the node using selenium grid through VM. Below are the steps that I followed while registering a node
Started Selenium Hub using the below command
java -jar ...
0
votes
2answers
51 views
Looping Pages in Selenium Webdriver
My facing issue is how to create looping such explanation below……?
https://drive.google.com/file/d/0B9-9eJW3sN3tS0hnMU9pd29SX2s/view?usp=sharing
2
votes
0answers
34 views
How to make scrapy follow the url which is generated by javascript?
I want to crawl the news in this website: new.scut.edu.cn
But in its subwebsite like this , the next-page(chinese下一页) url which is in the bottom-right is generated by javascript. The html source code ...
1
vote
1answer
29 views
How to use JsonWireProtocol without starting a browser process
It is possible to use JsonWireProtocol commands without having to start a phantomjs or a firefox, chrome process ? Maybe with an http library like Requests in python or something like that.
I can't ...
0
votes
1answer
27 views
Java Selenium Chromedriver.exe Does not Exist IllegalStateException
Here is the error message I'm getting:
Exception in thread "main" java.lang.IllegalStateException: The driver executable does not exist: ...
1
vote
1answer
22 views
Python - Selenium and XPATH to extract all rows from a table
I am using Selenium and XPATH to extract all rows from a table, but can only get the first row.
Here is what I am doing:
from selenium import webdriver
path_to_chromedriver = ...
0
votes
1answer
15 views
Nightwatch testing: Set browser to fixed size
Is there any way to ensure that the browser does not change from the initial window size. There are several things that are clicked during testing that are causing the window to maximize but i would ...
2
votes
1answer
24 views
PhantomJS Process doesn't exit
I am creating several instances of PhantomJSDriver and can make requests to websites and get the data I want. Each instance is spawned via the following:
WebDriver driver = ...
1
vote
2answers
43 views
How to get the Passed, Failed and Skipped method count from the testng suite level
I am overriding the generateReport() of the IReporter interface. To do some action, I need to figure out the total Passed method, Failed method, Skipped method count and total execution time of the ...
0
votes
0answers
16 views
nightwatch.js internet explorer
I'm using nightwatch for testing my javascript application. I need to be able to run cross-browser tests on local machine. Chrome and Firefox are OK, but when running test on IE, I got an error:
...
-1
votes
2answers
32 views
Url is not entering after firefox invoked in java by Selenium
Firefox was launched but the url is not entering in the address bar. I'm using selenium 2.45 and firefox 39
-1
votes
1answer
26 views
Webdriver Script is working fine in all other's browsers but not working in IE11
As my webdriver script is working well in Chrome, Firefox, Opera, Safari. But when I run this script in IE11 than it only opens the webpage after that it can't do any other functionality.
Please Help ...