Relative work experience
Read lots - blogs, articles, groups, books
Write lots - Github, blog, magazines
Q: You have a dropdown/select element which should be populated with country cities. But today it is empty. What could be the cause?
A: Open browser console. Check JS errors. Use Network tab, check AJAX/server requests if any.
Q:Name at least 3 HTTP request types and when they are used with a RESTful web service?
A:GET: Retrieves data from the server (should only retrieve data and should have no other effect).
A:POST: Sends data to the server for a new entity. It is often used when uploading a file or submitting a completed web form.
A:DELETE: Removes data from the server.
Q: Desing top 3 test cases for a date-time input.
A: Using BVA design tests for happy path first, then leap year and finally special characters/invalid input.
Q: What parts of an HTTP request Postman allows us to use?
A: The four parts of an HTTP request are the URL, method, headers, and the body.
Q: How Selenium WebDriver API works in general?
A: For each Selenium command, a HTTP request is created and sent to the browser driver. Then the browser driver uses a HTTP server for getting the HTTP requests. After that the HTTP server determines the steps needed for implementing the Selenium command. Then the implementation steps are executed on the browser and the execution status is sent back to the HTTP server. Finally the HTTP server sends the status back to the automation script
The best way to prepare for particular job and compnay is to do your homework. Go to the company's web site and see what is their tech stack, visit "Careers" page and see what are they working with.
Read carefully what the company needs and expects from the candidate ("Requirements" section). Once you know what to look for - use online resources to prepare yourself!