Questions tagged [selenium3]

The new version of Selenium. Use for questions about Selenium 3.0

Filter by
Sorted by
Tagged with
0
votes
1answer
27 views

Selenium starts firefox but only stays on a blank page

I've been looking at the distinction between webDriver.naviagate.to and webDriver.get and they seem the same. Certainly a web page launches..but then a big nothing burger. Not sure where to start ...
0
votes
1answer
37 views

How to read the excel (Later enter test data in application based on particular test script name)

I need your help, I want to read test data based on the Test script. And after reading data it should enter in the application. I am using selenium Java + Apache POI Below is the code please help. ...
0
votes
0answers
27 views

Using Selenium Webdriver Python Scripting file picker popup is not getting displayed using MACOS

Hi I have been trying to automate a page using Selenium Python on MACOS. And in one of the page there is a file picker popup that is supposed be displayed to upload files. Manually when running I get ...
4
votes
2answers
149 views

Using Python Selenium Not able to perform click operation

I am automating for the following page on CHROME Browser https://study.yupl.us/studies/5d5a64aa8b5bb92fb776753b?auth=false Here I'm able to identify the unique element from the console for the XPATH ...
1
vote
1answer
68 views

How to improve element selector?

How can I improve this selector? WebElement ele2 = driver.findElement(By.xpath( "//*[@id=\"nav-flyout-shopAll\"]/div[3]/div[1]/div[1]/div/a[4]/span[1]" )); Thanks package SelenuimSession; import ...
0
votes
0answers
34 views

Which language has more libraries and bindings for Selenium WebDriver? Java or Python?

This question might sound repeated. I have searched Stack exchange and found many questions by users who ask mainly on which language they should choose for Selenium WD: Java or Python? But their ...
1
vote
2answers
38 views

To use direct page URL or complete path?

My question is which approach is recommended when writing automation test for testing something like filters present on page no.3? Should I directly use url of page no.3 in my test file and test ...
0
votes
0answers
43 views

Unable to set proxy with BrowserMobProxy while modifying http header request in Selenium with Java

I am able to modify http request header using BrowserMobProxy, the same way explained https://sqa.stackexchange.com/a/37318/9043 But, the problem I am having at the moment is, that I am executing my ...
0
votes
0answers
26 views

Firefox opening wrong profile with selenium c#

I'm using selenium 3.14 with geckodriver 0.24, I'm using following code to run the existing profiles I have already created for my different accounts. FirefoxOptions firefoxOptions = new ...
0
votes
2answers
70 views

Store values from table for use in later tests

Below is my HTML code. I need to be able to save the names in the table rows (Saurav P, Ranjit M) to use in later tests. <table cellspacing="0" cellpadding="0" summary="Case managers who sign ...
1
vote
0answers
588 views

How to configure proxy settings for chrome in selenium c#

I want to configure the proxy settings for chrome web driver by using selenium 3.141.0 version in c#. var co = new ChromeOptions(); Proxy proxy = new Proxy(); ProxyIPAddress proxyIP = JsonConvert....
0
votes
2answers
115 views

Can't Select random months dates using jquery calender

I have Jquery calender in my application. I have task to select dates from different months using Selenium, but I can do only previous month and forward month. Actually I need to select dates from ...
0
votes
0answers
247 views

getting null pointer exception for different step definition files with cucumber and selenium

Browser utility: package com.gmsr.utility; import java.util.concurrent.TimeUnit; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; public class BrowserUtility { ...
0
votes
0answers
48 views

Why can Selenium not find an element in a page via XPATH when I can by pasting it and all other XPATHS work?

I would share the link here but I'm under NDA and requires login. The site does use "ant" and some other dynamic things but that doesn't cause any other issues. I've roughly 50 xpaths used for various ...
1
vote
0answers
21 views

How to print the webservice(jqurey) hit on the console for search functionality

Open a website, press F12 go to network option and enable preserve log now type the work you want to search eg:dogs we can see the service "http://search.test.com/search........." here i want the ...
0
votes
1answer
288 views

I am trying to automate the Clear trip website getting selenium.WebDriverException while selecting To city through selenium and java

package calendar_autosuggestivedropdown; import org.openqa.selenium.By; import org.openqa.selenium.JavascriptExecutor; import org.openqa.selenium.Keys; import org.openqa.selenium.WebDriver; import ...
0
votes
1answer
81 views

How can I set the language of Safari and launch using Selenium?

I need to launch the Safari browser for automation with a specific language(Korean) for automation purpose. I am using selenium with python for automation. How can I do that ?
1
vote
2answers
297 views

Not able to reference value of variable in Robot Framework

In Robot Framework, I want to reference the value of a variable, I had set earlier. But when I reference the value by: xpath= //*[text()=\${uid}] I do not get the value of the variable uid but ...
0
votes
1answer
33 views

How to get content of clickable element. Facing issue to read content after clicking an element

I have tried below code: if(webElement2.isDisplayed()) { webElement.explicitWaitToClickElement(4,webElement); webElement2.click(); } String tagContent = (String) ((...
0
votes
1answer
184 views

What is the good practice to instantiate page object in POM and PageObjectFactory?

I am practicing POM and Page Object factory. I would like to learn good practices in instantiating the pages. till now I am Instantiating the pages from test class (e.g. TC_01_Register.java) using ...
1
vote
1answer
403 views

How to parameterize @findBy in pageFactory

I am trying to implement a page class for footer in OpenCart application. which is having multiple links with same or similar properties except link text. What is the best way so that we can define ...
1
vote
2answers
521 views

How to drag an element and drop it in another frame?

Hope you doing well, I'm trying to dragAndDrop an element from FrameOne to FrameTwo but not able to do so.Please help me to understand the concept and what I'm doing wrong here and need to achieve ...
0
votes
4answers
447 views

How to move svg image using selenium element?

This is HTML code before having the element in svg. After that, I pull a new element from the sidebar into svg and HTML code like that So I want to move a new element to new position in svg. Example:...
1
vote
1answer
625 views

How can I prompt for input using Selenium/Webdriver and use the result?

i know this has been asked before but the last time it has been answered was about a year and a half ago main point is i want to from selenium import webdriver from selenium.webdriver.common.keys ...
3
votes
1answer
171 views

Getting different results using selenium and iFrames on Firefox 63, Chrome 69 and Chrome 70

I wrote a test using Katalon Studio 5.8.0. My application under test contains a iFrame. Fortunately, both the iFrame and its children are identified using unique attributes. So, the following code ...
0
votes
1answer
713 views

Close the Popup window using selenium (java)

How to close the popup modal dialog box using selenium (Java) tool for the below screenshot?
0
votes
0answers
39 views

Jenkins Server url-Unable to perform Google oauth authentication

I am running selenium scripts from Jenkins server configured at [http://****.****.com:8080/]. The script reads data from google spreadsheet and execute the testcases. For which I used google oauth for ...
0
votes
2answers
439 views

How to parameterize locator in Selenium

I am new to selenium, And In my scenario I need to select a product for list of products in the page. And Product name to select is a test data. Now my query is,Can I create Object in Class level ( ...
0
votes
1answer
1k views

Selenium Webdriver TestNG (Java) using While loop for all tests

I am new to Selenium Webdriver Testng and trying to Develop Data Driven framework using CSVReader I have 5 tests in Testng and have to run those all on different environments. So basically I have to ...
0
votes
1answer
346 views

How to reliably maintain a desktop session while running selenium node on windows VM?

I run a grid on Windows VM's in hyper-V. On hub host vm, I use Remote Desktop connection manager to open Desktop sessions, otherwise webdrivers do not function correctly. But RDCMan is not a reliable ...
0
votes
1answer
859 views

Error while executing javascript code in python3 while using selenium

I was trying to remove the ad and other pop-up using selenium after opening the webpage. The pop-up is getting removed but the ad is not getting removed. There is some error in executing javascript ...
1
vote
1answer
1k views

How do I use Selenium to drag and drop drawing elements into a canvas?

I have an element with an id which I need to select, then drag and drop into a drawing canvas. How do I do this? The element is outside the canvas and I need to draw it inside the canvas. function ...
1
vote
1answer
1k views

Drag and drop is not working with selenium 3.0 + chrome 65

Drag and drop is not working with selenium 3.0 + chrome 65 Page:- http://thetestingworld.com/testings/dashboard.php registration is free over site i'm facing an diffculity to perform drag and ...
0
votes
2answers
2k views

How to wait presence of elements in page factory

I'm using page factory and need to explicitly wait until particulate elements load. Please advise how to do that. up to now I have following.. public class HomePage { final WebDriver driver; ...
2
votes
2answers
376 views

How to Handle successful submission of a form in Selenium?

I came across a scenario, I want to submit a registration form. A new page will be loaded on successful submission. If any errors it'll end up with same registration form with error details. Now My ...
0
votes
1answer
1k views

Actions cant click element org.openqa.selenium.WebDriverException: Unable to convert: {actions=[org.openqa.selenium.interactions.Sequence@5ae76500]}

I'm trying to click the delete button while reading a gmail email that is open. I think it must be the way I locate this element. This element says style="-moz-user-select: none and I wonder is it ...
3
votes
1answer
5k views

How to get coordinates of element inside iframe?

If driver switched to iframe, selenium would take screenshot of iframe content only (EDIT: this is because of bug in gecko driver). I need to mask an element from screenshot, but if I find area by ...
0
votes
1answer
658 views

Confused between WebDriverWait and FluentWait

Disclaimer: I am relatively new to selenium and Java. I have gone through the selenium source code and found that WebDriverWait extends FluentWait<WebDriver> and FluentWait<T> implements ...
3
votes
3answers
13k views

Why this “WebDriver driver = new ChromeDriver();” Not this “ChromeDriver driver= new ChromeDriver();”

Why we always do: WebDriver driver = new ChromeDriver(); Not this: ChromeDriver driver= new ChromeDriver(); Any special reason, except object size ?
2
votes
0answers
908 views

Selenium running Firefox instead of IE or Edge

I am trying to get Nightwatchjs tests running with Chrome, Firefox, IE, Edge, and mobile web browsers (iOS, Android, etc). I'm having difficulty getting Selenium to open up a non-Firefox browser. ...
8
votes
0answers
808 views

Is there a way to use Selenium 3 to automate testing in Safari 11 without the 'glass pane'?

According to the WebKit documentation for Safari 10: "When running a WebDriver test in Safari, test execution is confined to special Automation windows that are isolated from normal browsing ...
1
vote
1answer
80 views

Adding a stickynote on site using toolbar

I have to test a case where using an option given on toolbar I can add sticky note to the image. I am able to perform this but the stickynote disappears after click command in selenium code get ...
7
votes
2answers
4k views

How to get max character count for input fields with selenium webdriver

How to get the maximum allowed character in any text box eg.user name, email address, in selenium webdriver ?
4
votes
4answers
7k views

Find first IMG element using XPATH

I am trying to find first fridge IMG element in a e-Commerce page but I could not find it alone, It's identifying all Images under First DIV.. Please share you thoughts I tried below XPATH, is there ...
0
votes
1answer
48 views

When I'm Using ImplicitlyWait my page shows Blank, Why?

When I'm executing my test case if i use the code driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); my execution into my browser show me empty (just white) but if I execute without ...
1
vote
2answers
154 views

What ruby automation options (capybara, watir) will let me use Selenium 3?

Selenium 3 came out in 2016. Which ruby test frameworks have adopted it? I want to use contains which is available in Selenium 3 for selecting elements.
0
votes
1answer
480 views

Not able to select flipkart filter in selenium

I am trying to select the filter sub-section ( Left panel) in flip kart page. I am trying to expand "TYPE" section but I could not do it... WebDriver driver = new ChromeDriver(); driver.get("https:...
3
votes
2answers
2k views

Selenium GeckoDriver vs ChromeDriver

I will try to be as clear as possible. Lets take an identical test case in both browsers. Open a page and find an element by the following method: wait.until(ExpectedConditions.elementToBeClickable(...
3
votes
3answers
15k views

Selenium: how to move physical mouse pointer outside the browser window

I am using selenium (C#) with Grid to test web application. But I get unexpected results when the physical mouse is over the browser window. Issue details same question on stackoverflow. I would ...
2
votes
3answers
7k views

What is geckodriver? How to use it in Selenium Webdriver? [closed]

What is geckodriver? How to use it in Selenium Webdriver?