Alexey R.
  • Member for 4 years, 5 months
  • Last seen this week
Advice on API Mocking Tools
Accepted answer
3 votes

Depends on what your resources are you might want to use either online service like either https://www.mocky.io/ or https://www.mockable.io/ or https://get.mocklab.io/ (that is build on top of ...

View answer
Handling cases where a JSON Key exists or not
3 votes

You just get Response object from your call and do: public class Test { public static void main(String[] args) { Response response = RestAssured .get("https://mocki....

View answer
File transfer test cases for different OS's
Accepted answer
3 votes

Destination is a device (e.g. in Windows copy file.txt con) would print file to a console since con is console device Copy from one file system to another (for example copy from your local Fat32 to ...

View answer
Feature branch testing before code is merged?
3 votes

I am not sure if there are any standards for that. I believe this might depend on a lot of factors specific to your project. In my experience we do not perform any sort of manual testing against ...

View answer
How do I get particular textNode value of a DOM with Selenium
Accepted answer
3 votes

Since a text node is not a Webelement there is no way to pick a single text node with Selenium (there is a dedicated method getText() that returns all the text from the WebElement which is not ...

View answer
Using Selenium IDE tool can we check the font color and font size or CSS values of the web element?
Accepted answer
3 votes

You can try execute script function. See my example below: Here is test output: Inside getComputedStype you need to use JS way to look up the element you need and then invoke getPropertyValue with ...

View answer
What is the default wait time for driver.findelement/findelements mthod
3 votes

It just waits for DOM is ready and checks for element presence. So the interval between DOM readiness and possible NoSuchElementExcepption is zero.

View answer
How can I handle alert using if else condition in selenium?
3 votes

If you check wait.until() code: You will know that it never returns null. It either returns found alert (see lines 88-92) or throws an exception. This is why your if does not work.

View answer
What is the purpose of this constructor pattern
3 votes

This is just one of the approaches how you can initialize elements associated with your page. Here you just use the classic way to initialize everything when you object is being instantiated. You ...

View answer
Cross platform and browser automation testing on linux
3 votes

Docker is not a virtualization platform. It is a containerization platform. It just isolates applications from each other. It might event fail to run the image that is built for one version of Linux ...

View answer
How to provide more value from test automation to Dev/entire team?
3 votes

To make it valuable for the entire team I would suggest to: Integrate your tests into CI process. So you need to take a role of devops or help your devops to do that Design your tests in BDD style (...

View answer
PageFactory is deprecated in C# (.NET) - what to use instead of that
3 votes

Here is the post where Jim Evans (the maintainer of C# Selenium binding) explains the issue you mentioned. In short: Its only now that I have started to write Selenium tests in C# that I understand ...

View answer
How to deal with huge PageObject using POM in Selenium?
3 votes

I wouldn't recommend to over-structure your model. If some part of your form can be logically segregated (for example you have several use-cases of how one uses the form and some of them provide basic ...

View answer
Tree of HTML from JSoup?
3 votes

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....

View answer
Requesting name and/or id for better Selenium testability
3 votes

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 ...

View answer
How can 100% test coverage be "not enough to prove working code"?
3 votes

Normally the app is not just the code, but infrastructure, resources, protocols, databases, etc. Usability, performance, stability aspects are not usually a matter of code coverage as well.

View answer
Is defect driven test automation an good idea?
3 votes

I wouldn't say it's a good idea for general automation since the future defects distribution in the code is hardly dependent on where previous defects were located and fixed. As a general test ...

View answer
How does $( document ).ready() work?
Accepted answer
3 votes

As it is stated on jQuery site A page can't be manipulated safely until the document is "ready." jQuery detects this state of readiness for you. Code included inside $( document ).ready() will ...

View answer
How do I convert Selenium web element to string?
3 votes

Use: String text = driver.findElement(By.xpath("xyz")).getText();

View answer
Does implicit wait set to 30secs will always wait 30secs even if it finds the element at 5 secs?
Accepted answer
3 votes

Here is the post that gives clear explanation on how exactly implicit wait work in Selenium. Regarding the cases you should use Thread.sleep in your code I would say that if you wait for the ...

View answer
What should be the approach to test styles using Selenium
3 votes

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 ...

View answer
Career path advice - microservices or APi testing
Accepted answer
3 votes

Start from learning REST API testing. REST is just an architectural paradigm, however most often it is implemented over HTTP protocol. So if you mean such the REST API then I would recommend to learn: ...

View answer
Selenium Webdriver TestNG (Java) using While loop for all tests
3 votes

You shouldn't use while loops to provide test data to your tests if you use some dedicated test frameworks like TestNg. Instead you should use the mechanisms provided by such frameworks. For TestNg ...

View answer
Bugged Mobile App To Test
Accepted answer
3 votes

I think you can just take any low-rated application from any application store and it will be highly-likely a "bugged mobile app". Another option is to install early-access application. Here is the ...

View answer
How to start working as a QA being a non-IT person?
3 votes

Probably you should not learn IT concepts BEFORE learning QA concepts. QA concepts are applicable to all the areas which produce products or services. So you may start learning QA concepts and start ...

View answer
How to reuse existing browser session, instead of opening new windows?
3 votes

You need to rework your utils.getDriver to make it producing a Singleton. You also should not invoke quit() method since it "destroys" the webdriver.

View answer
Can we use java to design specflows?
3 votes

Use cucumber. Specflow is a part of cucumber family that is developed for .Net world. So if you do not need .Net but need Java, just use the solution that was originally intended for Java

View answer
Testing new features on unreleased branch or current master?
Accepted answer
3 votes

You should make a new branch from master branch anyway. The only changes which might go to the master branch are bugfixes. So the process should look like the following: You make new branch from ...

View answer
How to compare two files without looking at the contents
3 votes

That depends on what you mean when you say "open" and what result you anticipate when you compare. You have to read both files in some way to compare them. File size won't give you reliable result. ...

View answer
NullPointerException in Webdriver/POM implementation
3 votes

You start your public void Pom_ex() from WebDriver driver = null; which introduces a driver variable that is locally visible in your method. Then you pass that null reference to Action and try ...

View answer
1 2
3
4 5
15