API
API
location, or both. URL identifies the web address or location of a unique resource.
URI contains components like a scheme, authority, path, and query. URL has similar
components to a URI, but its authority consists of a domain name and port.
The main difference between a URL and a URI is that a URL specifies the location of
a resource on the internet, while a URI can be used to identify any type of
resource, not just those on the internet. URI is usually used in XML, tag library
files, and other files, such as JSTL and XSTL.
2. What is the difference between path parameter and query parameter in API?
query parameters are used to sort/filter resources. On the other hand, path
parameters are used to identify a specific resource or resources.
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import java.util.Set;
// Initialize ChromeDriver
WebDriver driver = new ChromeDriver();
driver.get("https://www.example2.com");