I came across the following question asked in interviews which ask about controlling a web browser using a web service calls.
Implement the following 4 WebServices in the choice of your language.
startBrowser() -> Start the browser(User Input) and opens given URL(User Input)
stopBrowser()-> Kill the specified opened browser.
getLatestURL()-> Fetched last visited URL (Doesn’t matter browser is running or it’s closed)
deleteAllHistory()-> Delete all the data -> Browser History, cookies, cache, saved passwords, bookmarks etc.
https://www.geeksforgeeks.org/browserstack-mumbai-interview-experience-software-engineer/
Most of what I saw while trying to find answer to it ( on SO and other websites) was to use the main method to open a java framework based browser using java.awt and URL processing.
The above question demands opening a web browser using a web service call, which is possibly by hitting a rest service which opens and closes browser and does other operations mentioned in the question.
May I know how is it possible to interface a web browser (client side installed tool ) with a web service call ? Are there any special apis or annotations using REST. I am not able to understand the only part regarding interfacing web service call ( possibly using postman) with an application ( web browser) installed on client side.