Hello Ritvik, some of the desired capabilities methods in Selenium are:
1. getBrowserName():
public String getBrowserName()
2. setBrowserName():
public void setBrowserName(String browserName)
3. getVersion():
public String getVersion()
4. setVersion():
public void setVersion(String version)
5. getPlatform():
public Platform getPlatform()
6. setPlatform():
public void setPlatform(Platform platform)
7. getCapability():
public Object getCapability()
8. setCapability():
void setCapability(String capabilityName, boolean value)