public static Element locatorExists(Driver driver, String locator) {
        return new DriverElement(driver, locator, true);
    }
@Test
    void testToJson() {       
        Element de = DriverElement.locatorExists(null, "foo");
        List list = Collections.singletonList(de);
        Variable v = new Variable(list);
        logger.debug("element serialized: {}", v.getAsString());
    }