Questions tagged [selenium2]

Use for questions about Selenium 2. Selenium 2 is the second major release of Selenium, an open source framework for testing web applications. A major difference between Selenium 1 and Selenium 2 is the latter's use of WebDriver.

Filter by
Sorted by
Tagged with
-1 votes
3 answers
871 views

Trying to find span element by class and text with Selenium Java

<span class="icon-holder"> <i class="c-brown-500 ti-package"></i> </span> <span class="title">Vehicle Import</...
Robi's user avatar
  • 1
0 votes
1 answer
473 views

How to select city based on city name in mat-option-text?

I need to find a specific city from a drop down list. I have tried using the xpath but the id number for the city keeps changing. The element from the website is below: <mat-option role="...
David's user avatar
  • 1
1 vote
4 answers
173 views

Selenium Test cases for UI look

I have a test case, where I need to verify: a user selects any of the options. the text is not going out of the layout and displays complete readability to the user. As a result, the UI look and ...
Ghofrane Chakroun's user avatar
0 votes
1 answer
304 views

Fixed storage paths for Selenium screenshots or logs possible?

Details: Currently I use Python 3.10 and Selenium. I used here in the area of functional testing here in particular UI Testing accordingly also Selenium screenshots. But since I work on different ...
Mornon's user avatar
  • 1,107
0 votes
2 answers
677 views

I want to scroll to a specific location Selenium Java

I have a list of webelements, I have written the below code: List <WebElement> feature_tiles = driver.findElements(By.xpath("//div[contains(@class,'featuretile')]//a")); System....
KarlS's user avatar
  • 1
0 votes
1 answer
409 views

Not able to Launch Edge with Remote Driver can some one pls help

DesiredCapabilities capabillities = DesiredCapabilities.edge(); capabillities.setBrowserName(BrowserType.EDGE); capabillities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, ...
user49677's user avatar
1 vote
1 answer
2k views

Click on table row if text String is found

I have this Angular component implemented as a table: <div _ngcontent-nyg-c4="" fxlayout="column" class="feature-content" id="content.rowify" style="...
Peter Penzov's user avatar
4 votes
2 answers
206 views

Can we use FluentWait for hours selenium webdriver?

Actually I am working on one script in my application there I need to wait till its complete the execution, once complete the execute it will change the status. But I don't know when the execution ...
Selenium's user avatar
  • 167
1 vote
1 answer
98 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,107
3 votes
3 answers
659 views

In Page Object Model does all classes need to share a single driver instance?

I can create a BaseTest.java file and declare Public static WebDriver driver; in it. Then all classes can extend and use the same driver reference. Then all my test classes can use same instance. Can ...
Brian.tester687's user avatar
-1 votes
1 answer
128 views

Amazon Home Page automation

I am trying an automation script with amazon and trying to select the category drop-down on the home page of amazon, but unable to do. I am providing the code below. WebElement Catagory = driver....
Prabhat Ranjan's user avatar
2 votes
3 answers
916 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
0 votes
1 answer
304 views

java.lang.NullPointerException in Page object Model

I have created this program using TestNG and i'm getting this error java.lan*g.NullPointerException I have initialized the Webelement .But still i'm getting error POM.java package TestPOM; import java....
Patricia's user avatar
-3 votes
1 answer
276 views

Why do we create parameterized constructor in every PageObject class which accepts one driver reference when BaseTest has a global driver object? [duplicate]

When every test class will inherit driver, then why should we create constructor that takes driver object? public class BaseTest{ public static Webdriver driver = new ChromeDriver(); } public class ...
jeff64's user avatar
  • 1
-1 votes
1 answer
552 views

What does it mean to instantiate Webdriver in Selenium? [closed]

WebDriver driver = new ChromeDriver(); Now, when we "instantiate" Webdriver and create a reference variable and then assign the object returned to it, then does it mean that we have a new Chrome ...
jerry67's user avatar
  • 17
0 votes
1 answer
24 views

Element draged but not droped in destnation

//drag. WebElement From=driver.findElement(By.xpath("//div[@id='settings']//div[2]")); Thread.sleep(3000); // drop. WebElement To=driver.findElement(By....
umesh reddy's user avatar
0 votes
1 answer
2k views

Importing test library 'AutoIt' failed: ModuleNotFoundError: No module named 'AutoIt' Error

I am trying to file upload in modal form using robot/eclipse but its not working. I added autoit library to red.xml. Giving below error . Below is my code for file upload Click Element xpath=//*[@...
ADS KUL's user avatar
  • 21
0 votes
0 answers
105 views

How to get data from PDF from URL having authentication using selenium?

I need to automate this flow where a PDF will be opened when i use the URL and enter the authentication. This flow has to be automated using Selenium. I tried PDFbox API but it works only for URL ...
james edison's user avatar
0 votes
1 answer
134 views

Select a day, month and year from calendar picker and copy the date value into a variable [duplicate]

I'm trying to select month, year and date from calendar date-picker. I'm writing my script using pom & page factory approach. I'm not able to pass the date I selected to the variable named ...
Omar Adam's user avatar
1 vote
2 answers
1k views

Clicking on a tab using selenium not working

I'm trying to go through this site "https://www.dream11.com/cricket/create-team/1278/17702" and once this site is loaded, I want to click the skip button (which I can do) and then go on each of the ...
Nathan Godfrey's user avatar
2 votes
3 answers
708 views

python+selenium+Unittest: get website cookie/manipulate cookie/send back. Possible?

Details: For our test procedures, we want to read the cookies of a website, manipulate the cookie and read it again. We want to test if this is possible at all to avoid a security gap. We use for ...
Mornon's user avatar
  • 1,107
0 votes
3 answers
194 views

Selenium un-enable to find element

I have been through every selenium related page on here but not much else I can really try. I am trying to click on the text link but It gives me 'org.openqa.selenium.WebDriverException: chrome not ...
Davidito's user avatar
0 votes
4 answers
5k views

Selenium Webdriver sendKeys method sending value twice

I have 6 selenium tests (TestNG) running on chrome and firefox (both up to date versions) which connect to Browser stack to run. the problem is that 1 of the test fails intermittently on Chrome as ...
Fenomenoq's user avatar
0 votes
4 answers
86 views

What is the best way to learn Selenium Webdriver or any Automation tool in general? [closed]

I have purchased a Selenium automation course and practice sometimes as per the code shown in the lecture. But, i am going very slow and circling in basic topics like dropdowns, select tag, waits etc. ...
Jim45's user avatar
  • 11
0 votes
2 answers
124 views

What are the things that one must consider while learning Selenium Webdriver Automation framework?

I am a newbie in Automated scripting using Selenium WebDriver with Java. Also, i have the most basic knowledge of core Java. With tons of resources on the web for learning WebDriver, i am a bit ...
Brian34's user avatar
  • 17
0 votes
2 answers
87 views

How can I verify that saved data is displayed corrrectly using Selenium + C#?

<p class="details-info-block__text"><span class="details-info-block__label">Business Address 1:</span> 1010 Priority Way West Dr</p> I want to verify the address value (e.g. "...
Uliana's user avatar
  • 1
0 votes
1 answer
210 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
1 vote
2 answers
2k views

Disable physical mouse and keyboard in selenium

I am trying to run an automated test that requires me to move the mouse around the page. The problem is that whenever the person running the test moves the physical mouse while the test is running, ...
Miguel Mesquita Alfaiate's user avatar
1 vote
1 answer
15k views

How to get the href value from the xpath?

Below is my element location, i need to find the id from this link. <a href="bnf_view.aspx?QBnfId=BGOOE00003" class="case-hdr" xpath="1">Dean Ambrose</a> Expecting this output-BGOOE00003 ...
RK007's user avatar
  • 41
-1 votes
1 answer
299 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}","...
user40261's user avatar
0 votes
2 answers
602 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
0 votes
3 answers
1k views

How to identify the web-element for a Text Box using Selenium

I am attempting to locate the empty textbox by the input id 'Department_input' <input id="Department_input" type="text" aria-required="true" size="40" class="field_input ui-widget-content" ...
pythonLearner2000's user avatar
1 vote
0 answers
401 views

How can I integrate google-API-spelling-java (API) in our selenium code to check the spellings? [closed]

To check the grammar and spellings entire application
user39670's user avatar
-1 votes
2 answers
120 views

Either its possible to get and show a value from front end in selenium Java. If so, then how I can do this

I am testing a website and I need to perform some action on the basis of Price. It is showing price in Remaining Budget. I want to check the remaining budget and then on the basis of it want to ...
Muhammad Atif Muneeb Alrai's user avatar
2 votes
2 answers
350 views

if/else condition is not working as expected

WebElement radio= driver.findElement(By.xpath("//[@id=\"mydiv\"]/form/div[1]/div[3]/label")); if (radio.isSelected()){ Thread.sleep(2000); driver.findElement(By.xpath("//*[@id=\"mydiv\"]/form/...
Muhammad Atif Muneeb Alrai's user avatar
0 votes
3 answers
4k views

Unable to find element with css selector == input[name='username']

WebElement username = driver.findElement(By.cssSelector("input[name='username']")); The statement mentioned above was working before but right now concerned element can't be captured and error ...
santino87's user avatar
-1 votes
2 answers
5k views

How to interact with web elements with the same ID's?

I have three drop-downs with same ID's and want to click each of them, one by one, but it will click the same element three times. The remaining two elements are failing, but that test case is passed. ...
anjith neerukonda's user avatar
1 vote
3 answers
616 views

is there any possibility to check the button sizes and images are loading or not in selenium?

how can I check frontend button sizes, logos, and images are loading or not?
anjith neerukonda's user avatar
2 votes
2 answers
196 views

What is the best way to automate a system, where the XPath is not static?

I have to automate a system, which changes its ID's from time to time, and the XPath is not static. What is the best way to automate this kind of system?
ShadowTK's user avatar
  • 587
4 votes
2 answers
5k views

How can I handle alert using if else condition in selenium?

else is perfectly executed but if block is not executed - can anyone help me? WebDriverWait wait = new WebDriverWait(Maf_Base.getDriver(), 10 /*timeout in seconds*/); if(wait.until(...
anjith neerukonda's user avatar
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
2 answers
72 views

Finding an element by tagname's value

In our app that we are using, there are widgets on the page, lots and lots of widgets. There is a HTML tag called widgetkey in it, with an 'id' value associated with it. Here is the exact HTML: <...
Greg P's user avatar
  • 209
2 votes
1 answer
454 views

Selenium exception is reported twice in logs

I am using Cucumber Page Object model to execute my tests. Here is my POM file:- <dependencies> <dependency> <groupId>info.cukes</groupId> <artifactId&...
Sjain's user avatar
  • 35
0 votes
1 answer
1k views

how to run same testcase in 2 different URL in selenium JAVA [closed]

How do I run the same test case in 2 different URL which has same functionality
Priya's user avatar
  • 1
2 votes
2 answers
122 views

How can we automate the fields if there are multiple data components are present on UI and we need find inside elements

I am new to selenium. following are some info. Can someone guide me to create xpath and this is the approach we are using to maintain the UI elements unique, so for this code, will selenium help to ...
Nilam Nikam's user avatar
-2 votes
1 answer
68 views

Double decimal value [closed]

public static String TaxAmount(String totprice,String tax) { String strD2=tax; double totalprice= Double.parseDouble(strD2); String strDl = totprice.trim(); if(strDl....
John snow's user avatar
2 votes
3 answers
5k views

How to accept Alert message in Selenium Java

I tried driver.switchTo().alert().accept(); but still i am unable to accept the alert message. please let me know the code to accept below message. enclosed screenshot of message and XML
Arjun's user avatar
  • 43
0 votes
1 answer
87 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....
John snow's user avatar
1 vote
1 answer
1k views

unable to click modal popup using selenium

I Have an application developed using Electron+Chromium when browser launched without any URL there will be a popup. This is a modal popup and using selenium I'm unable to handle this popup. HTML ...
Jagannatha Mv'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

1
2 3 4 5
11