Questions tagged [selenium-webdriver]

Used for questions about using Selenium WebDriver, a browser automation framework frequently used to automate testing in a browser.

Filter by
Sorted by
Tagged with
1
vote
1answer
6 views

How to select third tab on same class name by selenium python

I just jump into python programming. I couldn't solve this I tried to several ways This is target site <div class="base-components__BaseElement-sc-150tvch-0 sc-VigVT bJRDeW"> <ul role="...
1
vote
1answer
21 views

The value from the table are different using Xpath and CSS selectors

Test url=https://www.cricbuzz.com/live-cricket-scorecard/22585/aus-vs-nz-1st-odi-new-zealand-tour-of-australia-2020 I am trying to get the title of a table using the below code: Code snippet: ...
1
vote
1answer
2k views

Setting up Page Objects with python and seem to be getting every error possible

Project structure: WebTeam __init__.py BasePage.py UIMap.py Pages: __init__.py Common.py ContactPage.py test: __init__.py CompetitorsTest.py CreateAnonData.py ...
1
vote
2answers
10k views

Check Box check and Uncheck using selenium web driver

I am not able to list out the check boxes which are checked and unchecked.the checkboxes are placed in the div tags. And only class name is generated dynamically when the check box is clicked. ...
-1
votes
1answer
16 views

How to get “10:20 AM IST” from that code using xpath in selenium

<div class="game-date-time"> <span data-date="2017-03-11T04:50Z" data-behavior="date_time"> <span class="time game-time" data-dateformat="time1" data-showtimezone="true">10:20 AM ...
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
0answers
8 views

Selenium is not switching to iframe in Angular

I have tried many different ways to try and switch to the iframe and did figure out that it's the 2nd iframe, but no matter what I do when I run my automation it doesn't acknowledge that it's there. ...
0
votes
1answer
964 views

How to inspect a element in a drop down menu in chrome and firefox?

The problem here is when we hover the mouse over the particular menu item, drop down items going to visible. When trying to click the inspect element the drop down items are not going to be visible. ...
0
votes
2answers
4k views

Can't find any element using CSS selector with Selenium on Python

I'm running a script on vodafone.co.uk but I can't find any element using the CSS Selector. browser.get("http://freesim.vodafone.co.uk/") browser.find_element_by_css_selector("#frmNew > div:nth-...
2
votes
1answer
38 views

How do I get the disabled state of a Submit button after click, but before page reload?

The code I am attempting to test prevents double submitting of a form by detecting the click event via Javascript and disabling the button. To clarify, the sequence of events is as follows: Navigate ...
0
votes
1answer
416 views

Unable to capture the alert in Selenium using Python

I am trying to test a web portal using Selenium and Python. The problem is, I am unable to get around an error, in other words, I am unable to catch the alert. Scenario: Search for a user, if the ...
0
votes
1answer
10k views

How can I check if a text box is empty using Katalon Studio (or Selenium)?

My site has a text field with a default value that is filled after first user login. But, on the first visit, the text box is empty. How can I check if a text box is empty or not? Using Katalon ...
1
vote
3answers
855 views

Selenium - How to copy entire excel column without using iterator

I'm new to selenium and I'm having following query. Query: Am working on a project where I need to copy 4000 values from an excel in a single go and I need to paste that in the list box of ...
0
votes
2answers
499 views

How do you enter data from a jhtml Area element using selenium?

Now in the application that i have to automate, there's a jhtml Area element. This is a sample jhtml area: http://pietschsoft.com/demo/jhtmlarea/. So the jhtml area has two elements for the text you ...
1
vote
1answer
478 views

How to create a Selenium IE Node that starts on boot?

I've been hitting my head against the wall with this one for a while now. On Linux Chrome and Firefox selenium nodes are fairly easy to setup and start automatically at boot time using docker or even ...
0
votes
1answer
3k views

Running the Chrome Browser headless using selenium webdriver with Cucumber on Ubuntu

I have a setup that runs on mac fine (currently launches browser and uses chromium), what i need to do now though is get this running on Ubuntu 14.04 (Amazon EC2 instance), and have chrome or chromium ...
2
votes
1answer
12k views

Looping through a Table with separate colums and clicking on an item within it

I would like to loop through a list of div classes that is dynamically generated in two columns (fixed), rows (dynamically generated). I would like to select a button on the second column with a group ...
0
votes
1answer
51 views

Fetch paid Amount value from iframe

if(ScenarioName.equals("MoveinwithVantivCard")) { driver.findElement(By.id("btnsave")).click(); // driver.switchTo().frame("paymentIFrame"); driver.switchTo().frame(driver.findElement(By....
0
votes
1answer
1k views

Selenium driver.getWindowHandles() is not working while opening new tabs in same browser window

package demo.webtables; import java.util.HashSet; import java.util.Set; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa....
0
votes
2answers
142 views

How Does Test Planning Differ for Manual and Automation Projects?

I am now into automation projects. So can anyone help how the test plan will differ from manual and automation projects.?
0
votes
0answers
18 views

Need help with AutoIT script created to handle browser authentication pop up

I have written below AutoIT script to handle the browser auth window as below. I have parameterized script to get the uname & pwd from command line. With this parameterized script during ...
0
votes
2answers
90 views

I absolutely cannot get this xpath to work… selecting a radio button

I have been trying for days to select this button... I've tried xpaths by ID type, input type, child of, etc. What am I missing here, why is VS unable to locate the "element" ? I can use the same ...
3
votes
2answers
2k views

Verify text present in jquery dialog box

I need to verfiy the dialog box displayed on clicking a 'Save' button for below conditions. Whether the dialog box is displayed? Text present in the dialog box? I have tried using all locators and ...
3
votes
3answers
483 views

AngularJS - Testing User Permissions/ User Access Levels

In our web-application(built on Bootstrap and Angular), certain tabs in the navbar are displayed only to particular users. Certain input boxes/ buttons are enabled only to certain users. I want to ...
0
votes
1answer
467 views

Unable to tap on Search on android keyboard using pressKeyCode(int) method

I am a beginner in Appium automation. The application I am testing, have this scenario where I need to tap on Search button from the native keyboard. I have tried with pressKeyCode method but getting ...
-1
votes
2answers
1k views

Access Denied when trying to automate the MakeMy trip website using Selenium

I am trying to automate the MakeMy trip website using Selenium Webdriver in Java with Google Chrome. My script is failing once I click on the Search button. Error message: Access Denied You don't ...
6
votes
1answer
827 views

Getting web driver exception message while tapping list elements using appium

I am using appium 1.4.8 on mac and I'm automating native app using selenium. I am stuck at a situation where I need to tap each element in a list. I wrote below code: List allKeywords=driver....
0
votes
1answer
234 views

Unable to connect to Remote Server using Selenium Chrome RemoteWebDriver

public static IWebDriver UserMultiUserSignIn (IWebDriver driver, string port, string hostName, string password, string Username) { string name = Dns.GetHostName(); ChromeOptions Options = new ...
1
vote
2answers
273 views

How to bring elements to view automatically in Protractor or selenium

I have a webpage to be tested which has a button at the footer of the page. When i click it, there should be an error message shown near to it. I was successful in automating this scenario but the ...
4
votes
3answers
6k views

How much time it takes to automate 10 test cases of an module using selenium

It's an Interview question: If each test case contains 8-10 lines within it. Then what would be the average time to automate them? I think it depends on the following factors: Complexity of the ...
0
votes
2answers
63 views

How do I locate an element from a web click?

Python-selenium documentation has examples of locating elements based on id, class, name, xpath, etc. How would I go about locating elements based on the click location from the mouse?
0
votes
3answers
670 views

Launch FireFox custom profile with geckodriver in java

I'm trying to launch a Firefox profile with add-ons in it, with selenium v3.12 and gecko-driver v2.10 and Firefox version 60.0, how-ever it seems that the custom profile is not working. below is my ...
0
votes
1answer
141 views

Error - NotImplementedException Was Unhandled

I am trying to subtract the result of 2 variables and I want to echo the result in Selenium. I am using VS2015 as my IDE. //Obtaining pressure For 2100 hours today driver.FindElement(By.XPath(".//*[@...
0
votes
3answers
112 views

Mouse hover action to browser window close button

I have a test scenario where the web application checks for the user's leave intent i.e., mouse hovering from the page to the browser close and then a frame gets triggered. Is there any way to do it? ...
3
votes
2answers
916 views

Locate Elements through Shadow DOM in Chrome Selenium?

I currently have an automation tool built using Python. Currently, the tool serves the custom application my company has built on Salesforce. Salesforce released a Winter 2020 version, and implemented ...
0
votes
1answer
32 views

Switching from inner iFrame to the outter (parent) iFrame

I have an iFrame in another iFrame, I´am able to switch to the parent iFrame and then to the child iFrame, but I´am just not able to switch back to the parent one. Is it even possible to switch up top ...
-3
votes
0answers
9 views

visual studio automation testing of selecting country out of a drop down menu and entering mobile number in same column [closed]

I am testing a registration for on visual studio using Nunit and i am to select a country from drop down menu and at the same time input mobile number(both in same column). Below is the error message ...
0
votes
1answer
289 views

When i run my appium code during run time i am getting this error “Exception in thread ”main“ java.lang.NoClassDefFoundError”?

I have written a code to launch my app and click on the element, the app is launching but after launching when it is trying to click, I am getting an error which I am not able to understand why. ...
1
vote
1answer
304 views

Access is Denied Issue thrown at ChromeDriver Initiation step

Azure DevOps is triggering and running tests on a VM. All my tests are working fine on local machine. On VM, While trying to launch Chrome browser using ChromeDriver and WebDriverManager, tests are ...
2
votes
2answers
33 views

Test Automation for different user roles within an application - Selenium and C#

I was a developer a long time ago and have been tasked with our teams automated testing with Selenium and C# for our web application; Our application has many roles a user can be; such as an admin, ...
0
votes
1answer
301 views

Selenium, data driven testing using NUnit and SQL queries.

I am developing a Selenium Test Automation Framework for the purpose of testing multiple websites. I have currently set up the Framework in Visual Studio using C# and implementing the Page Object ...
2
votes
1answer
298 views

How to click an available time slot in customized UI calendar?

I have customized UI calendar attached in screenshot having date and time slots to book some test drive. actually the booked slot div contains some class and available slot contains some class name. ...
0
votes
1answer
184 views

How to check webservice response in database using Selenium or UFT

I have an application. Different web services gets called when any action is performed. Let me explaian my scenario: When i update a value in applciation it's also get updated in LPS system. The LPS ...
6
votes
3answers
478 views

Is the Page Object Pattern the ideal approach for browser automation for a website which has a front-end that has frames in frames?

I'm confronted with a web application which has a front-end that has frames in frames in frames. Regarding automated UI Tests with Selenium and Cucumber, is the Page Object Pattern the right approach ...
2
votes
2answers
13k views

Getting correct locator for an angular page element

I am trying to get the Xpath of a label text in a web page that I am trying to automate. The application is angular based, so there are a lot of angular related stuff on the page. However, I am ...
0
votes
1answer
66 views

Selenium-JavaMail api-Unable to perform email verification. It throws error as :- Please log in via your web browser:

I use java mail API in selenium automation script to verify email confirmations. The scripts will be executed by different team members. I got this error, when someone tries to run from other IP ...

1
2 3 4 5
89