Questions tagged [selenium3]

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

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

Why does this Selenium script sometimes fail to detect that the element has become stale?

This is a helper method we use in many places in our Selenium Java tests. The intent is to click a button and then detect that the browser has navigated away from the page by detecting the staleness ...
Nzall's user avatar
  • 475
3 votes
2 answers
4k views

Selenium + Java: Unable to close Advertisement in webpage

Issue I am facing: After this step: driver.findElement(By.linkText("New Customer")).click(); an advertisement window opens and script stops here. I'm unable to close the advertisement and ...
chinmay k's user avatar
-1 votes
2 answers
143 views

How to automate dynamic ui from json in selenium

I have a UI that is rendered against the provided JSON in DB. If I change in the JSON how would I know the fields in UI How I do this in selenium
Aftab Ahmad's user avatar
0 votes
1 answer
277 views

How do I select the li element from dropdown using java in selenium

Below are the code which I used: driver.findElement(By.xpath("//div[@class=' flag-dropdown']")).click(); WebDriverWait wait = new WebDriverWait(driver, 10); List<WebElement>...
QA stacker's user avatar
2 votes
4 answers
5k views

How to open outlook and click on the link that is there in the mail using Selenium

In my application I need to send a confirmation after which an mail will arrive to my Outlook which I need to open and click on the link which is sent in the mail. Can someone please let me know if ...
user50414's user avatar
0 votes
1 answer
46 views

How to handle the exact position of runtime creating webelement in selenium python

I've been writing a couple of tests using selenium for my website. However, I've not found a way to test multiselect dropdown with checkboxes that is filled by V-autocomplete(vuetifyjs) component . As ...
Haroon's user avatar
  • 1
1 vote
1 answer
93 views

Is it possible to include Internet Explorer 5 or 6 in Selenium Grid?

Based on this question here, I was wondering if you can also include Internet Explorer 5/6 in Selenium Grid? How can Internet Explorer 5 be emulated in 2020? I don't think this is possible either, but ...
Mornon's user avatar
  • 1,105
1 vote
1 answer
625 views

Checkbox gets unchecked even though the Code is written to only select the checkbox..can someone pls help

Scenario: On the Screen once I navigate I have to click on the checkbox the first time only... Next time when I run the script the checkbox should not be unchecked.... but Issue: First Time if the ...
sandy's user avatar
  • 23
1 vote
1 answer
1k views

How to click pop up window button in selenium with Pyhton

I want to click the "Akkoord" button but I am unable to do that. I already tried different methods but they are not working. Any help will be appreciated. one of the codes I tried. from ...
Tauqeer Sajid's user avatar
1 vote
1 answer
3k views

Python with selenium: unable to locate element which really exists

I've been trying to fill input: <input id="PASSFIELD1" class="logField" type="password" onkeyup="next(this, event);" maxlength="1" autocomplete=&...
Soumya Swain's user avatar
2 votes
3 answers
869 views

How to pass excel column values into different test methods of a class in Java Selenium

I have an excel which contains 4 columns with N rows. Let us say Col1, Col2, Col3, Col4 are the headers. Now I have a java class and there are 3 methods inside it. public class test(){ @Test(...
Sriharsha's user avatar
1 vote
3 answers
397 views

Why does Google Chrome initiated through Selenium shows less attributes for anchor tags compared to normal Chrome session?

I'm trying to scrape some image href attributes from the <a> tags from a Google search using Selenium, ChromeDriver and Chrome. When the url is accessed manually I'm able to locate the required ...
undetected Selenium's user avatar
0 votes
3 answers
3k views

What is the purpose of creating a BaseTest class which declares a global static WebDriver object in POM framework?

I am a newbie in Selenium Automation. I don't understand the concept of creating a "BaseTest" class which has one static Webdriver. I always get confused on this concept and end up creating multiple ...
nick235's user avatar
  • 17
2 votes
1 answer
1k views

How to fetch username and password from excel one by one to test login functionality in robot framework-selenium-python

I am trying to login to my application one by one using different credentials in robot framework-python-selenium but it is not working. Below is my code. Please suggest. Open Browser ${URL} chrome ...
ADS KUL's user avatar
  • 21
0 votes
0 answers
42 views

Getting org.openqa.selenium.ElementNotInteractableException: element not interactable for Editor in selenium in Java [duplicate]

I have a Text Editor where I want to perform Sendkeys() but getting 'element not interactable' error. I'm able to get the text of that element by getText(). No idea how to work with this editor. ...
Ash's user avatar
  • 31
3 votes
2 answers
12k views

How can I handle the chrome HTTP Authentication popup window in selenium without AutoIT?

I have tried https://{USERNAME}:{PASSWORD}@xyz.com pattern to authenticate URL but it doesn't work for me. Can someone suggest me the best way to handle chrome HTTP authentication popup?
Denish Makwana's user avatar
0 votes
2 answers
1k 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 ...
Thufir's user avatar
  • 367
0 votes
1 answer
191 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. ...
forumqaa's user avatar
  • 389
7 votes
2 answers
33k 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 ...
srini_sharma's user avatar
1 vote
1 answer
128 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 ...
Ashutosh Singh's user avatar
2 votes
1 answer
226 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 ...
srini's user avatar
  • 457
2 votes
2 answers
75 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 ...
Megha's user avatar
  • 73
0 votes
1 answer
1k 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 ...
udit choudhary's user avatar
0 votes
2 answers
576 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 ...
RK007's user avatar
  • 41
1 vote
0 answers
5k 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....
Shiza's user avatar
  • 11
0 votes
3 answers
536 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 ...
koushick's user avatar
  • 133
0 votes
0 answers
3k views

Getting NullPointerException 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 { ...
jay's user avatar
  • 13
1 vote
0 answers
30 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 ...
Ramya's user avatar
  • 33
0 votes
1 answer
2k 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 ...
Palak Soni's user avatar
0 votes
1 answer
597 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 ?
Sreevalsa E's user avatar
1 vote
2 answers
3k 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 ...
Rishikesh's user avatar
  • 885
0 votes
3 answers
134 views

How to get content of an clickable element in Selenium?

Facing issue to read content after clicking an element in Selenium. I have tried with below code: if(webElement2.isDisplayed()) { webElement.explicitWaitToClickElement(4,webElement); ...
user36942's user avatar
3 votes
1 answer
1k views

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

I am practising 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 the ...
SQA_LEARN's user avatar
  • 435
1 vote
1 answer
2k 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 ...
SQA_LEARN's user avatar
  • 435
3 votes
2 answers
4k 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 ...
Sameer Malhotra's user avatar
0 votes
4 answers
2k 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:...
Sinh Vien IT's user avatar
1 vote
1 answer
5k 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 ...
Kingdomruler10's user avatar
3 votes
1 answer
251 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 ...
fgrossin's user avatar
0 votes
1 answer
7k views

Close the Popup window using selenium (java)

How to close the popup modal dialog box using selenium (Java) tool for the below screenshot?
Anand V's user avatar
0 votes
2 answers
3k 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 ( ...
SQA_LEARN's user avatar
  • 435
0 votes
2 answers
4k 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 ...
viki's user avatar
  • 13
0 votes
1 answer
980 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 ...
H.D.'s user avatar
  • 247
0 votes
1 answer
2k 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 ...
A Q's user avatar
  • 1
1 vote
1 answer
3k 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 ...
sathish kumar's user avatar
1 vote
1 answer
2k 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 ...
Arpit Srivastava's user avatar
1 vote
3 answers
5k 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; ...
1234's user avatar
  • 487
2 votes
2 answers
2k 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 ...
SQA_LEARN's user avatar
  • 435
0 votes
1 answer
2k 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 ...
seleniumappiumnewbie's user avatar
3 votes
1 answer
8k views

How to get coordinates of element inside iframe?

If driver switched to iframe, selenium would take a screenshot of iframe content only (EDIT: this is because of bug in gecko driver). I need to mask an element from the screenshot, but if I find an ...
vilkg's user avatar
  • 171
0 votes
1 answer
1k 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 ...
Alok's user avatar
  • 760