Questions tagged [selenium-webdriver]
Used for questions about using Selenium WebDriver, a browser automation framework frequently used to automate testing in a browser.
4,978
questions
1
vote
1
answer
741
views
Sikuli analog for selenium javascript
I use seleniumjs to automate my tests
Is there a tool which can find an element on a page by its image? Or just assert that an image is present somewhere on a page
I know Sikuli in Java can do such ...
-2
votes
1
answer
601
views
Getting until exception in FluentWait try every solution does not work please help [closed]
Wait<WebDriver> wait1 = new FluentWait<WebDriver>(driver)
.withTimeout(30, TimeUnit.SECONDS)
.pollingEvery(5, TimeUnit.SECONDS)
.ignoring(...
2
votes
2
answers
508
views
Selenium with IntelliJ
I was confused with IntelliJ, but after watching videos I see that it is an IDE, just like Eclipse. It looks somewhat similar to Eclipse, but when do people set their choice on Eclipse and when on ...
1
vote
1
answer
5k
views
[Selenium]getAttribute using "textContent" - assertion fails when 'equals' is used but works when 'contains' is used
Here is the sample:
WebElement LoginLabel = driver.findElement(location);
assert LoginLabel.getAttribute("textContent").equals("Login ID");
Above code fails while asserting but when I try to print ...
1
vote
2
answers
3k
views
Assert multiple Id's using for loop in selenium and python
I want to assert all ids in the list with for loop, my code is not working:
list = ["'block-views-news_of_the_day-block_1'", "'views_slideshow_singleframe_main_carousal_new_block-block_1-2'",
...
1
vote
1
answer
4k
views
What are the recovery scenario for Selenium Framework? [closed]
How to handle recovery scenario in my framework. In this framework I want to create some methods which work after catching exception. So that I can easily come back on the normal stage from any of the ...
1
vote
1
answer
143
views
Selenium RC : How to handle drop down list while automating?
How to handle the drop down by using selenium RC. While I am automating Gmail registration page the birthday section giving error
1
vote
1
answer
197
views
How can we separate logs in Appium for each test script?
I have written a script where I'm calling all the necessary test cases. Appium is generating its own logs, which I can store in a text file.
But the problem is that the logs for all the scripts are ...
2
votes
2
answers
144
views
To write the reason for exception in excel
I'm using Apache POI for Excel operation.
I'm able to print what exception it is in Excel by writing a print statement in that particular catch() block.
But I also want the reason for that exception, ...
5
votes
4
answers
37k
views
How to wait until for "particular text" is present that to using insensitive/Ignore case?
wait.until(ExpectedConditions.textToBePresentInElement(By.xpath("path"), "Text"));
The above command executes successfully only if the text in the locator is exactly same as "Text" but fails when ...
-2
votes
1
answer
4k
views
Is it possible to restrict images from loading using selenium web-driver? [closed]
I'm using excel selenium to scrape some information from pages with lots of images. Is it possible to make the browser don't load the images of the page? So it could be more faster.
0
votes
1
answer
18k
views
How to verify if a WebElement(Button,Dropdown) is enabled Using TestNG?
I have a dropdown and a button on a web page.please suggest how to verify if a WebElement(Button,Dropdown) is enabled Using TestNG framework?
one more thing when we work on TestNG we have to use ...
1
vote
1
answer
880
views
Select Window=Null equivalent in webdriver/java
While clicking the drop down, Selenium IDE records a selectWindow command as SelectWindow=null. What is the equivalent code in webdriver/java ? I tried driver.switchto.window("null"); but on trying it ...
2
votes
2
answers
5k
views
Automation halts when browser popup appears in chrome for robot framework
I am using latest version of chrome 53.0.2785.57 beta-m (64-bit). When I execute my test script, at a point of time when deleting a line item chrome default confirmation popup appears and test fails ...
1
vote
3
answers
3k
views
Selenium + Chrome browser : How to Validate Downloaded file after clicking on downloaded button/ link using Selenium [closed]
How to Validate Downloaded file after clicking on downloaded button/ link in chrome browser
1
vote
1
answer
530
views
Java + Selenium : What all best practices are & How to implement for executing test cases in Selenium
From the knowledge I have acquired while doing automation with other tools, I want to ask about specifics of doing that in Selenium (with Java). Questions:
I remember watching a video on Junit where ...
3
votes
3
answers
1k
views
Need help in identifying web elements for which I need to request developers to add unique IDs
I am new to automation and still in learning phase. We are building an automation framework using Selenium with Java for a web app that is being newly developed. We do not have IDs for most elements ...
1
vote
3
answers
2k
views
How do I create log file to save error in a text file using Selenium Webdriver with C#? [closed]
I need to create a dll log file using Selenium Webdriver with C#. Errors generated while running the C# code need to saved in this text file using that dll. How do I go about achieving this?
0
votes
2
answers
1k
views
No redirection after clicking on <div>
I am trying to automate clicking on a button of a webpage where the source code has the following structure:
<div id="ctl02_" class="sel">
<div id="Lo" class="cont">
<...
2
votes
2
answers
331
views
Finding dropdown name where only the first word matches given string using Selenium
I am trying to match the first word in a drop down list with a given string. What is happening is when I am creating a new drop-down name, it is getting updated by some different name, though the ...
0
votes
1
answer
1k
views
webdriver doesnt Click (sometimes) even after waiting for ElementToBeClickable
Example not exact code:
WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(45));
wait.Until(ExpectedConditions.ElementIsVisible(By.Id(Element)));
wait.Until(ExpectedConditions....
2
votes
5
answers
228
views
Help required with understanding Cross-browser Testing
Based on my knowledge so far of cross-browser testing may I ask the following:
Is it true that at majority of the companies it is not performed, since most of the time when something working on one ...
0
votes
1
answer
350
views
Maven and Transitive Dependencies
I have a good understanding of Maven basics, but few things are unclear to me. Please help me with the following:
I understand that a transitive dependency isn't declared in your POM. So, where can ...
1
vote
3
answers
33k
views
Xpath for TR and TD tags
Hi everyone,
I need to get integer value and compare it with another value in different tag. what is the xpath for this.How can i get this. I have attached a screeshot
4
votes
2
answers
209
views
What is Selenium Grid needed for?
I am having problems understanding Selenium Grid even after watching YouTube videos. Also, is it true that not every Selenium tester should know it.
Earlier I also had problems understanding Maven, ...
4
votes
2
answers
263
views
Page Object Model in Selenium [duplicate]
I never had to test an application with Page Object Model, so trying to study up on that. Questions:
Is it true that it is only used when you need to enter different sets of data into the same edit ...
3
votes
2
answers
2k
views
How to select an element from a drop down list inside 'svg viewbox' container using Java/WebDriver?
<svg viewBox="0 0 24 24" style="display: inline-block; fill: rgb(224, 224, 224); height: 24px; width: 24px; transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms; position: absolute; right: ...
1
vote
1
answer
1k
views
Selenium/Appium + Java : What is the real difference between methods .isDisplayed() and .isEnabled()?
While writing a code many time any of them get failed. How actually those methods work? Please great if you can help to stop confusing between those two.
Q - What is the real difference between ...
1
vote
1
answer
1k
views
Unable to Login successfully using JMeter. How to resolve issue?
I am using JMeter for QA automation tools. I've tried some ways to log in, read from blazemeter and jmeter manuals, read about oAuth. I also made JMeter use browser(firefox in my case) to log in (but ...
2
votes
1
answer
400
views
Expecting results in boolean[True/False] but getting status as "None" - Why? How to resolve?
I execute javascript below and it must return True or False and it would do the Run Keyword If the statement is False but what in ${CheckboxStatus} is None, instead of Boolean value True or False. ...
0
votes
1
answer
49
views
Will android 5.0.1 sdk package work for android 5.0.4? [closed]
I have Android 5.0.4, so which Android SDK package do I need to Install?
There are two Options available in Android SDK Manager
ANDROID 5.1.1
ANDROID 5.0.1
My Device : 5.0.4
0
votes
3
answers
279
views
Is there any Java based page object framework similar to Taza?
This is probably not a typical SO question. But, I need to post this here because google searches have not given me the answer I was looking for. Hopefully, the experienced developers here can give ...
0
votes
2
answers
7k
views
unable to enter the value second time in same text field in C# selenium
I entered one value in text field, using this code
driver.findelement(By.Id("Text"+Keys.enter));
Then, I used same id to enter second value in same text field
driver.findelement(By.id("Text2"+Keys....
1
vote
2
answers
6k
views
How to prepare for selenium interview? [closed]
For selenium with java automation testing, which topic I have to concentrate more to crack an interview. Anyone can suggest me?
0
votes
5
answers
483
views
Load testing using Selenium and Genymotion
What is the use of Genymotion?
My company is testing a wifi login portal using Selenium and wants me to perform load testing on the portal with multiple virtual devices.
What is the role of ...
1
vote
2
answers
1k
views
Identifying objects in Selenium
I have been asked on interviews about identifying objects, so I got a little confused. All of the below questions are related to identifying elements, so I combined them together:
Is there any other ...
1
vote
1
answer
1k
views
How do I automate onclick redirection to Outlook for creating mail?
When clicked on supportmailid present in webpage it takes me to Outlook create mail, how do I automate this? I am using selenium for all my automation of web-app.
2
votes
3
answers
616
views
Who invented WebDriver ThoughtWorks or Google?
It's kind of late asking this question. But reason I'm posting it because information on these two links:
One says that it is Google's product and other says that it ThoughtWorks' product.
It is ...
2
votes
1
answer
838
views
Switching to Webview context fails
I was trying to automate tests for a hybrid app, while switching, it only shows name native context. WebView Context is shown as webview_undefined.
Set<String> contextNames = driver....
2
votes
2
answers
7k
views
Appium + Android Camera : How to automate android camera scenarios using Appium? Any work around?
I'm trying to automate an Android test on a real device using Appium in which I have an application.
In order to complete a registration, the application will ask the user to take a Selfie, so when ...