Questions tagged [selenium-webdriver]

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

462 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
1answer
29 views

How can I handle browser alert

I do not understand how to click allow button. import time from selenium import webdriver chrome_options = webdriver.ChromeOptions() chrome_options.add_argument("--disable-notifications") ...
0
votes
2answers
158 views

Selenium driver for web app testing on chrome in incognito windows

So I am trying to use a selenium web driver extension on chrome to record a web application test on a chrome browser that is in an incognito mode. How do you run a test on a web application in an ...
0
votes
3answers
3k views

Test cases stop execution for next test cases after using soft assertion

I have used soft assertion in my test cases, but it stops the execution of all the next test cases. what I know if we are adding soft assertion then particular test case should fail and it should jump ...
0
votes
1answer
645 views

Why does Selenium suddenly skips all my tests?

I'am used to run the E2E test couple of times a day during development... Today It suddenly skips all my test and all my spec files register.e2e-spec.ts I didn't do any changes or updates on my spec ...
0
votes
1answer
96 views

Email content checking

I am doing automation testing. In our web application the employees get daily mail notification. what i need is ,to write test case to check the daily emails. The emails contents are the services that ...
0
votes
2answers
98 views

Finding sibling of found element using selenium

I've got a field with a date in it that's identified by a code that's shown in the div previous to it. <div class="fcode"> <div class="fcode_n">(123)</div> ...
0
votes
3answers
117 views

How to verify findElement in Div?

I can't capture with findElement the class, xpath etc. in: https://economia.estadao.com.br/noticias/geral,por-que-nao-tres-em-uma,70002648617 click on: entre aqui para ler a matéria. I already ...
-1
votes
1answer
22 views

Load More button is not clicking more than once

I have a Search Screen where after I enter the search criteria and search, a Load More button will display if there are more than 30 records. The problem here is it clicks the Load More button for the ...
-1
votes
0answers
32 views

I have a Dynamic WebTable where i need to select any Two chekbox randomly how to do that

Scenario: I have a WebTable where i go and enter the Search Criteria and based on the Search Criteria the Matching records appears. Then i Need to select 2 checkbox from the table . My Question is - ...
-1
votes
2answers
19 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
-1
votes
1answer
22 views

cannot click on link Python Selenium

I am trying to add a confirmation link on selenium but selenium is not able to click on that link its on yopmail with name janemartin90452 It doesn't click on the confirmation link Name "Activate ...
-1
votes
1answer
34 views

Not able to click() on newly added account number from a account list on the page

A new account is created using selenium script and a message appears that "Account is created successfully : <***12345>" After this, Account page is displayed where all the accounts ...
-1
votes
1answer
54 views

Any Load Testing Tool suggestion for the tests consists of Node.js using Selenium Web driver?

We have a number of web pages that support and have a matching set of automated tests for those pages. Each test consists of node.js, using selenium web driver, and generally, we target a Chrome ...
-1
votes
1answer
49 views

Efficient way to setup Jenkins for Automation Project

I have configured Jenkins server on windows computer. The systems has below configurations: OS : Windows 10 Processor : intel i3 processor RAM : 16GB 500GB hard disk The problem is recently the ...
-1
votes
2answers
546 views

Getting java.lang.NullPointerException while trying to instantiate the Webdriver driver under @ Annotation

Please find the code below and let me know why am I getting NullPointer. I am having no clue. package com.seleniumhybridframework.utility; import java.util.concurrent.TimeUnit; import org.openqa....
-1
votes
2answers
1k views

How to select a value from dropdown developed using div tag using Selenium and Python?

In Selenium Java we are using ACTION class method or SELECT method to select value from drop down. Is there a similar method in Python?
-1
votes
1answer
317 views

Can any one suggest how to test leaflet maps using Selenium?

I want to test fleet management software using selenium core java. But i have no idea how to test maps and live tracking scenarios using selenium. can anyone give us best solution?
-1
votes
1answer
1k views

Text field clear automatically after entering the value as sendkeys

I tried to login on my mobile webbrowser. After passing my username as string, it clears automatically. My code is loginId.click(); loginId.sendKeys(userName); The script fails only with the ...
-1
votes
1answer
16 views

The navigator does not take the url that I indicate to him using Selenium on Python

everyone. First, excuse me for my bad English. I will try to go a specific URL but just the browser its open. This is my code 1 file: from selenium import webdriver class Objects: def __init__(...
-1
votes
1answer
152 views

Extent reports issue in maven project

I am using extent reports in my project but it is showing me error and I am not getting solution for this error: [RemoteTestNG] detected TestNG version 6.14.3 Starting ChromeDriver 75.0.3770.140 (...
-1
votes
5answers
624 views

Finding elements

I need some help with finding the elements using webdriver. On the webpage this is the label 'Password' < div _ngcontent-c1="" class="form-group text-left"> < label _ngcontent-c1="">...
-1
votes
2answers
1k views

Deprecation issue for InternetExplorerDriver

I want to use PAGE_LOAD_STRATEGY strategy while launching IE driver by using the following code but I'm facing a deprecation issue for InternetExplorerDriver. What's the reason for it? ...
-1
votes
1answer
531 views

How to assert links count on web page through selenium webdriver

I have written below code in a separate class to count links on a particular webpage, How to assert this in a test case class: public static void navigateToLinkInHomePage() throws Exception { ...
-1
votes
1answer
272 views

when I try to launch any driver the webpage is not getting loaded

org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output: syncGUID":"{4ef3f74f-a8c6-4d0a-9f70-82419b95c42f}","...
-1
votes
1answer
2k views

In Selenium using Python facing error unable to locate element

from selenium import webdriver from selenium.webdriver.common.keys import Keys # create a new Firefox session driver = webdriver.Firefox() driver.implicitly_wait(30) driver.maximize_window() # ...
-1
votes
2answers
867 views

Website login Issue in Selenium ChromeDriver

I am login to a website using Selenium and ChromeDriver. But website login details are shown as incorrect every time. But I have manually logged into the site using Chrome browser easily. How do I ...
-1
votes
2answers
883 views

Not able to click Logout Button eventhough able to identify the element in selenium webdriver

Environment : IE11 Webdriver/Selenium version : 3.141.59 Language : java Selenium code: driver.findElementByXPath("//span[contains(text(),'Logout')]").click();** HTML code : <span class="v-...
-1
votes
1answer
41 views

Testing Question in Selenium Python

How to get required item hrefs in a flipkart page? This is my code: from selenium import webdriver driver = webdriver.Firefox(executable_path ="/home/yegaiah/Desktop/geckodriver") website_URL ="...
-1
votes
2answers
631 views

Getting error in selenium with node.js automation

I am working on automation. I am using Selenium with nodejs code. I am just beginning to learn selenium with nodejs. I am trying to open a application, but I am getting error. Here is my sample code.....
-1
votes
1answer
103 views

Why tests fail when run in eclipse after creating through selenium IDE?

I have created many tests using Selenium IDE and exported into java files in order to run in eclipse. All tests work properly in Selenium IDE but when I run in eclipse(java file) it creates following ...
-1
votes
1answer
47 views

How to identify the button WebElement

I want to click this button. but I can not find any web element so that the driver can find out. Help me to fix this. <button type="submit" class="signupbtn btn_full btn btn-action btn-block btn-...
-1
votes
2answers
327 views

Getting nullpointer exception for 2nd test case working fine for login

Driver set to null for 2nd test case, working fine for login. Driver class: public class Driver { private static WebDriver driver;; /** * * @return * @throws Exception */ public static ...
-1
votes
1answer
41 views

Email code modifications needed

Below is the email code to send Reports after execution and one method put is used, that's generating error. How to defined that put method to successful Test execution and test report sends ...
-1
votes
1answer
151 views

Automation testing using selenium and python

I am new to automation testing. I am learning from last 2 months. My company needs a program to check multiple URLs and perform tests on them to see if the sites are working or not. If not working, ...
-1
votes
2answers
117 views

How locate dynamic text field element inside dialog box?

I tried to using absolute xpath to locate the dynamic text field element after search but it fails. <div class="pzbtn-rgt" data-click="..."> <div class="pzbtn-mid" data-click="...."> <...
-1
votes
2answers
563 views

I was unable to locate element for login id?

ERROR MESSAGE: INFO: Detected dialect: OSS Exception in thread "main" org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"id","selector":"usr"} (...
-1
votes
3answers
639 views

Getting Null pointer expections " java.lang.NullPointerException "

[RemoteTestNG] detected TestNG version 6.14.3 1553664942228 mozrunner::runner INFO Running command: "C:\Program Files\Mozilla Firefox\firefox.exe" "-marionette" "-foreground" "-no-remote" "-...
-1
votes
1answer
211 views

How to keep a count on number of clicks on a file

I want to move the file downloaded on first click to folder 1 and move the file downloaded on second click to folder 2 using java. How it can be achieved using Java. Can somebody help me ? for (...
-1
votes
1answer
161 views

TestScript run time error NullPointerException

I am new to Selenium, when I am working with Page object model in the execution time system displays java.lang.NullPointerException. Here I am going to provide the sample code: TestUtil@class ...
-1
votes
2answers
1k views

Selenium - NoSuchElementException

Here is my HTML code, <div class="input-group-btn search-panel dropdown open"> <input type="search" id="footerSearch" class="form-control search-...
-1
votes
2answers
102 views

I am unable to identify element of edit text in table

I am unable to identify element. please find my below code. WebElement editorFrame = dr.findElement(By.id("1536219451331-0-uiGrid-000L-cell"));
-1
votes
1answer
109 views

Pop up handling in Selenium using try and except block gives a broad exception warning

try: if browser.find_element_by_xpath('//[@id="s"]/a').is_displayed(): browser.find_element_by_xpath('//*[@id="s"]/a').click() browser.switch_to.default_content() ...
-1
votes
1answer
1k views

How to write automation code for Auto suggest search box to fetch all the displayed values and click one by one

import java.util.List; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium....
-1
votes
6answers
13k views

Unable to click on checkbox using Selenium & Java

please send me the full code I tried Some XPath and CSS: XPath: //div[@id='autofill']/div/label //div[4]/div/label CSS: div.col-md-1.checkbox.checkbox-primary > label* but using above ...
-1
votes
3answers
11k views

How to Iterate and loop the select Options in dropdown box using Selenium with python?

I want to select an apple and then after "save and Go" then after it should select an orange like the way it should iterate till coconut, at end of the list it should be select 'Save & Hold'. I ...
-1
votes
1answer
635 views

How to get iteration count in cucumber?

I wanted to get iteration count in cucumber when we are executing feature file with multiple row from example in feature file.
-1
votes
1answer
1k views

java.lang.NullPointerException occured while implementing driver initialization through inheritance

Base class: public class Base { public WebDriver driver ; @BeforeMethod public void initialize() { System.setProperty("webdriver.chrome.driver", "/Users/apple/eclipse-workspace/Selenium/...
-1
votes
2answers
4k views

driver is getting null for utility classes

I'm getting null pointer exception for driver object. Here is the flow: BaseClass initializes the driver (WebDriver driver = new ChromeDriver();) I create a test class and extend it with BaseClass. ...
-1
votes
2answers
122 views

I am getting Error in Excel Dataconfig how can i resolve this error?

Here is my Code:au package Mypackage; import java.util.concurrent.TimeUnit; import org.openqa.selenium.support.ui.Select; import org.testng.annotations.AfterMethod; import org.testng.annotations....
-1
votes
1answer
451 views

How do I run multiple testcases defined in different classes with two different logins using Selenium,Java and TestNG?

Example: Public class A() { Method A1 Method A2 } Public class B() { Method B1 Method B2 } I am using dataprovider to get the login info (id and password) from excel Public class login() { User1 ...

1
6 7 8
9
10