Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Used for questions about using Selenium WebDriver, a browser automation framework frequently used to automate testing in a browser.
0
votes
How to write automation code for Auto suggest search box to fetch all the displayed values a...
It depends on how the system behaves when you are trying to select the second, third... elements.
The general idea is to the search again.
I can imagine the following to situations:
1 - The input g …
1
vote
Scraping through selenium : unable to locate element
After clicking on the search icon, there is a AJAX request to fetch the data.
You would need to wait its end to query the text.
One way of doing it easily is to wait for the searchHit element to be v …
0
votes
How to use a private webelement initialized in POM class through other classes?
You can have methods on the concrete pages:
class HomePage {
private WebElement userName;
public void verifyUserName(){
this.verifyElement(userName);
}
}
If you want to gener …
1
vote
Trying to get background color
The CSS attribute for the text color is simply "color", not bgcolor.
https://www.w3schools.com/cssref/pr_text_color.asp
Inspect the "___titie" class to double check it.
1
vote
It is impossible to create a new session Got this error
was not found or it is not accessible
It means that the port which you tried to access is not available. Ping the server to double check it and run on other port, if possible.
1
vote
Why does my script not working in internet explorer but working fine in chrome
This is probably a mismatch between the browser version and Selenium.
https://stackoverflow.com/a/51023244
Also, IE requires additional configuration.
2
votes
How can I click list of elements in one frame (or) container?
Selenium provides two methods to deal with iFrames.
You can search for a iFrame with id IFRAME_ID
driver.switchTo().frame(IFRAME_ID)
And you can return to the context of the root element:
driver. …
0
votes
Accepted
Selenium deprecated org.open.selenium.internal.Locatable
Selenium offers the org.openqa.selenium.interactions.Locatable interface now.
1
vote
Automation testing
Selenium provides a wrapper class to work with dropdowns - Select:
WebElement dropdownElement = driver.findElement(By.id("myDropdown"));
Select dropdown = new Select(dropdownElement);
And you can …
0
votes
Selenium - To compare and verify image in PDF file with front end
With Selenium, you can take a screenshot.
You can try to create a PDF file with the same structure as you the one you have, and compare both.
0
votes
How do Continue the Scripts Execution Even one line fails to execute?
Many frameworks have features to do it.
TestNG's softAssert, for instance.
A solution independent of frameworks is to implement one yourself.
You will need an object which holds the falling assertion …
0
votes
Getting NullPointerException while performing getText alert handling
If the alert is not displayed or accessable, driver.switchTo().alert() will return null and alert1.accept(); will raise a NullPointException.
If that's the case, waitForAlertMsg may have some problem …
0
votes
Unable to locate button via Selenium WebDriver
One way is to look for all buttons and then filter out the button which has a span with the text you want.
E.g.
# Find all buttons on the page
$allButtons = $driver.FindElementsByTagName("button")
# …
4
votes
Accepted
Does selenium search elements from bottom or top of the DOM
Selenium implements a breadth-first search, meaning it starts from the root of the DOM and walks through all immediate children. Afterwards, it goes through the children of each children.
Therefore …
1
vote
Accepted
Using API calls to speed up selenium tests
This is a just your test data generation strategy.
As with any strategy, it will have a balance between:
Maintainability cost x execution time;
Test code simplicity x test code flexibility;
It wil …