Skip to content

Commit

Permalink
Rename class
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Aug 3, 2019
1 parent b5a6a4b commit a769221
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@
import static com.google.common.base.Preconditions.checkArgument;
import static org.openqa.selenium.json.Json.MAP_TYPE;

public class FriendlyLocators {
public class ByFriendyLocator {

private static final Json JSON = new Json();
private static final String FIND_ELEMENTS;
static {
try {
String location = String.format(
"/%s/%s",
FriendlyLocators.class.getPackage().getName().replace(".", "/"),
ByFriendyLocator.class.getPackage().getName().replace(".", "/"),
"findElements.js");

URL url = FriendlyLocators.class.getResource(location);
URL url = ByFriendyLocator.class.getResource(location);

String rawFunction = Resources.toString(url, StandardCharsets.UTF_8);
FIND_ELEMENTS = String.format("return (%s).apply(null, arguments);", rawFunction);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
import java.util.stream.Collectors;

import static org.assertj.core.api.Assertions.assertThat;
import static org.openqa.selenium.support.friendly.FriendlyLocators.withTagName;
import static org.openqa.selenium.support.friendly.ByFriendyLocator.withTagName;

public class FriendlyLocatorsTest extends JUnit4TestBase {
public class ByFriendyLocatorTest extends JUnit4TestBase {

@Test
public void shouldBeAbleToFindElementsAboveAnother() {
Expand Down

0 comments on commit a769221

Please sign in to comment.