Skip to main content
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
Results tagged with
Search options answers only not deleted user 27679

Questions regarding automation of web applications for testing purposes according to specific of used web browser.

6 votes

Are test-specific selectors a good idea?

I would say it is always a good idea from the standpoint of automated tests development efficiency. Unused attributes (you call them tags but they are rather the attributes) cannot be really considere …
Alexey R.'s user avatar
  • 11.6k
4 votes

Multithreading: chromedriver does not open url in second window

Driver d1 = new Driver(profile); d1.start(); Driver d2 = new Driver(profile1); d1.start(); Here you create Driver d2 but start d1.start() the second time then (you have started it two lines of code …
Alexey R.'s user avatar
  • 11.6k
3 votes

What should be the approach to test styles using Selenium

Selenium does not let you pick the current style of an element unless it is specified in style attribute of that element. However you can use JavaScript to pick any evaluated style of the element and …
Alexey R.'s user avatar
  • 11.6k
3 votes

Requesting name and/or id for better Selenium testability

It is a normal practice. You should only remember that in modern UI a lot of elements are dynamically generated so the capabilities of your devs might be limited in that area. It might also depend on …
Alexey R.'s user avatar
  • 11.6k
3 votes

Tree of HTML from JSoup?

Try to use this (children()) instead of getAllElements(). Because when you use the latter one, you get the node itself alongside with its children. Hence you will always be cycling between two methods …
Alexey R.'s user avatar
  • 11.6k
2 votes

How to go to a certain Xpath by Searching a Text in Selenium WebDriver

//*[text()='TASK42'][@id='tasksForm']/input[3] won't be working for your case. The syntax like this [some][condi][tion] is like AND logical conjunction. So in your query you're saying I want …
Alexey R.'s user avatar
  • 11.6k
2 votes
Accepted

NullPointerException when using @FindBy

To understand the magic happening you should first understand a Proxy pattern. There is a post on SO where you can get some insight on what the Proxy patter is. So, when you call PageFactory.init(... …
Alexey R.'s user avatar
  • 11.6k
2 votes
Accepted

POM: driver is passed as an argument? Always?

I appreciate that author's contribution to the people's global knowledge sharing but I have doubt on how well he mastered his Java skills at least because of he doesn't adhere coding style convention …
Alexey R.'s user avatar
  • 11.6k
2 votes

How can I handle the chrome HTTP Authentication popup window in selenium without AutoIT?

Despite you have chosen Niels answer as correct, I would also suggest a way to work around your issue. What you're talking about is likely a "basic authentication". The best way to bypass this step is …
Alexey R.'s user avatar
  • 11.6k
1 vote

How to select and click the first enabled button?

This should work for you. List<WebElement> enabledButtons = driver.findElements(By.xpath("//button[not(@disabled)]")); if(!enabledButtons.isEmpty()){ enabledButtons.get(0).click(); } Explanatio …
Alexey R.'s user avatar
  • 11.6k
1 vote

Randomise the data for a sign up form

For the field validation I would recommend to use predefined set of test data. Since form validation mechanisms usually validate for certain rules it will be easy to prepare data that would fail valid …
Alexey R.'s user avatar
  • 11.6k
1 vote

RPA tool for automation

I have never used TagUI and actually I have never heard about it before you asked your question :) However I googled a bit and considered this topic interesting. Let me share my view on that (however …
Alexey R.'s user avatar
  • 11.6k
1 vote
Accepted

xpath query for specific String value

You should use .getAttribute("href"); so that your code would look like: WebElement webElement = webDriver.findElement(By.xpath("//a[contains(text(), 'Books')]" ); LOG.info(webElement.getAttribute("h …
Alexey R.'s user avatar
  • 11.6k
1 vote
Accepted

Tidy HTML with BaseX

Looks like you are missing TagSoup in your classpath. As it is stated here you should have one to be able to successfully import html format. Since html is often not a well-formed XML, it should be pr …
Alexey R.'s user avatar
  • 11.6k
1 vote

Unable to find Dynamic Xpath

I am not sure this contains(@class="login_button") is a proper xpath syntax (however since you're not mentioning parse errors looks like it is) at least for your task. Try: //*[contains(@tabindex," …
Alexey R.'s user avatar
  • 11.6k

15 30 50 per page