Skip to main content
deleted 1 character in body
Source Link

If the geolocation is present in a textbox then locate the text box with the locators and then use getText() method. Then print the value.

WebElement location = driver.findElementByID("Locator value");
System.Out.println(location);
if(locationslocation.equals("Actual geolocation"))
{
System.out.println("location matches");
}
else
{
 System.out.println("location is not matched");
}

If the geolocation is present in a textbox then locate the text box with the locators and then use getText() method. Then print the value.

WebElement location = driver.findElementByID("Locator value");
System.Out.println(location);
if(locations.equals("Actual geolocation"))
{
System.out.println("location matches");
}
else
{
 System.out.println("location is not matched");
}

If the geolocation is present in a textbox then locate the text box with the locators and then use getText() method. Then print the value.

WebElement location = driver.findElementByID("Locator value");
System.Out.println(location);
if(location.equals("Actual geolocation"))
{
System.out.println("location matches");
}
else
{
 System.out.println("location is not matched");
}
added 107 characters in body
Source Link

If the geolocation is present in a textbox then locate the text box with the locators and then use getText() method. Then print the value.

WebElement location = driver.findElementByID("Locator value");
System.Out.println(location);
if(locations.equals("Actual geolocation"))
{
System.out.println("location matches");
}
else
{
 System.out.println("location is not matched");
}

If the geolocation is present in a textbox then locate the text box with the locators and then use getText() method. Then print the value.

WebElement location = driver.findElementByID("Locator value");
System.Out.println(location);

If the geolocation is present in a textbox then locate the text box with the locators and then use getText() method. Then print the value.

WebElement location = driver.findElementByID("Locator value");
System.Out.println(location);
if(locations.equals("Actual geolocation"))
{
System.out.println("location matches");
}
else
{
 System.out.println("location is not matched");
}
Source Link

If the geolocation is present in a textbox then locate the text box with the locators and then use getText() method. Then print the value.

WebElement location = driver.findElementByID("Locator value");
System.Out.println(location);