id
stringlengths
7
14
test_class
dict
test_case
dict
focal_class
dict
focal_method
dict
repository
dict
2088736_30
{ "fields": [ { "declarator": "element", "modifier": "@Mock\n private", "original_string": "@Mock\n private FluentWebElement element;", "type": "FluentWebElement", "var_name": "element" }, { "declarator": "elementAssert", "modifier": "private", "origin...
{ "body": "@Test\n public void testHasAttributeValueKo() {\n when(element.attribute(\"attribute\")).thenReturn(\"other value\");\n assertThatAssertionErrorIsThrownBy(() -> elementAssert.hasAttributeValue(\"attribute\", \"some value\"))\n .hasMessage(\"The attribute attribute does not h...
{ "fields": [], "file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/FluentWebElementAssert.java", "identifier": "FluentWebElementAssert", "interfaces": "implements ElementStateAssert, ElementAttributeAssert", "methods": [ { "class_method_signature": "FluentWebElementAssert.Fl...
{ "body": "@Override\n public FluentWebElementAssert hasAttributeValue(String attribute, String value) {\n String actualValue = actual.attribute(attribute);\n\n if (actualValue == null) {\n failWithMessage(\"The element does not have attribute \" + attribute);\n }\n\n if (!ac...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_164
{ "fields": [ { "declarator": "DRIVER_LIFECYCLE = \"driverLifecycle\"", "modifier": "private static final", "original_string": "private static final String DRIVER_LIFECYCLE = \"driverLifecycle\";", "type": "String", "var_name": "DRIVER_LIFECYCLE" }, { "declarator": "ret...
{ "body": "@Test\n public void scriptTimeout() {\n assertThat(getConfiguration().getScriptTimeout()).isNull();\n\n mockProperty(\"scriptTimeout\", 1000L);\n assertThat(getConfiguration().getScriptTimeout()).isEqualTo(1000L);\n }", "class_method_signature": "PropertiesBackendConfigurationT...
{ "fields": [ { "declarator": "PROPERTIES_PREFIX = \"fluentlenium.\"", "modifier": "static final", "original_string": "static final String PROPERTIES_PREFIX = \"fluentlenium.\";", "type": "String", "var_name": "PROPERTIES_PREFIX" }, { "declarator": "prefixes", "mo...
{ "body": "@Override\n public Long getScriptTimeout() {\n return getLongProperty(\"scriptTimeout\");\n }", "class_method_signature": "PropertiesBackendConfiguration.getScriptTimeout()", "constructor": false, "full_signature": "@Override public Long getScriptTimeout()", "identifier": "getScriptTim...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_534
{ "fields": [ { "declarator": "keyboard", "modifier": "@Mock\n private", "original_string": "@Mock\n private Keyboard keyboard;", "type": "Keyboard", "var_name": "keyboard" }, { "declarator": "mouse", "modifier": "@Mock\n private", "original_string"...
{ "body": "@Test\n public void moveToTargetElement() {\n LocatableElement target = mock(LocatableElement.class);\n Coordinates targetCoordinates = mock(Coordinates.class);\n when(target.getCoordinates()).thenReturn(targetCoordinates);\n\n MouseElementActions actions = new MouseElementAc...
{ "fields": [ { "declarator": "driver", "modifier": "private final", "original_string": "private final WebDriver driver;", "type": "WebDriver", "var_name": "driver" }, { "declarator": "element", "modifier": "private final", "original_string": "private final ...
{ "body": "public MouseElementActions moveToElement() {\n loadElementAndPerform(actions().moveToElement(element));\n return this;\n }", "class_method_signature": "MouseElementActions.moveToElement()", "constructor": false, "full_signature": "public MouseElementActions moveToElement()", "ident...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_471
{ "fields": [ { "declarator": "fluentControlWait", "modifier": "@Mock\n private", "original_string": "@Mock\n private FluentWait fluentControlWait;", "type": "FluentWait", "var_name": "fluentControlWait" }, { "declarator": "fluentList", "modifier": "@Mock\n ...
{ "body": "@Test\n public void withMessage() {\n String message = \"test\";\n ArgumentCaptor<Supplier<String>> argument = ArgumentCaptor.forClass(Supplier.class);\n\n wait.withMessage(message);\n Mockito.verify(fluentControlWait).withMessage(argument.capture());\n assertThat(argu...
{ "fields": [ { "declarator": "elements", "modifier": "private final", "original_string": "private final List<? extends FluentWebElement> elements;", "type": "List<? extends FluentWebElement>", "var_name": "elements" }, { "declarator": "controlWait", "modifier": "...
{ "body": "@Override\n public FluentWaitElementList withMessage(Supplier<String> message) {\n controlWait.withMessage(message);\n return this;\n }", "class_method_signature": "FluentWaitElementList.withMessage(Supplier<String> message)", "constructor": false, "full_signature": "@Override pub...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_308
{ "fields": [ { "declarator": "fluentControl", "modifier": "@Mock\n private", "original_string": "@Mock\n private FluentControl fluentControl;", "type": "FluentControl", "var_name": "fluentControl" }, { "declarator": "element", "modifier": "@Mock\n privat...
{ "body": "@Test\n public void testElementListNotFound() {\n assertThatThrownBy(() -> waitHook.findElements()).isExactlyInstanceOf(TimeoutException.class);\n }", "class_method_signature": "WaitHookTest.testElementListNotFound()", "constructor": false, "full_signature": "@Test public void testElemen...
{ "fields": [], "file": "fluentlenium-core/src/main/java/org/fluentlenium/core/hook/wait/WaitHook.java", "identifier": "WaitHook", "interfaces": "", "methods": [ { "class_method_signature": "WaitHook.WaitHook(FluentControl control, ComponentInstantiator instantiator, Supplier<WebElement> elementSupp...
{ "body": "@Override\n public List<WebElement> findElements() {\n return buildAwait().until(new Function<FluentControl, List<WebElement>>() {\n\n @Override\n public List<WebElement> apply(FluentControl input) {\n List<WebElement> elements = WaitHook.super.findElements();...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_563
{ "fields": [ { "declarator": "CSS_TEXT = \"some: css\"", "modifier": "private static final", "original_string": "private static final String CSS_TEXT = \"some: css\";", "type": "String", "var_name": "CSS_TEXT" }, { "declarator": "javascriptControl", "modifier": "...
{ "body": "@Test\n public void shouldInjectCss() {\n when(javascriptControl.executeScript(anyString())).thenReturn(fluentJavascript);\n\n cssSupport.inject(CSS_TEXT);\n\n verify(javascriptControl, times(1)).executeScript(startsWith(\"cssText = \\\"some: css\\\";\"));\n verifyNoMoreInter...
{ "fields": [ { "declarator": "INJECTOR_JS_PATH = \"/org/fluentlenium/core/css/injector.js\"", "modifier": "private static final", "original_string": "private static final String INJECTOR_JS_PATH = \"/org/fluentlenium/core/css/injector.js\";", "type": "String", "var_name": "INJECTOR_...
{ "body": "@Override\n public void inject(String cssText) {\n cssText = cssText.replace(\"\\r\\n\", \"\").replace(\"\\n\", \"\");\n cssText = StringEscapeUtils.escapeEcmaScript(cssText);\n executeScriptRetry(\"cssText = \\\"\" + cssText + \"\\\";\\n\" + getContentOf(INJECTOR_JS_PATH));\n }"...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_133
{ "fields": [ { "declarator": "fluentList", "modifier": "@Mock\n private", "original_string": "@Mock\n private FluentList<FluentWebElement> fluentList;", "type": "FluentList<FluentWebElement>", "var_name": "fluentList" }, { "declarator": "listAssert", "modif...
{ "body": "@Test\n public void testHasMultipleClassesOkBanana() {\n when(fluentList.attributes(\"class\")).thenReturn(Arrays.asList(\"beta product\", \"alpha male\"));\n listAssert.hasClass(\"male\");\n }", "class_method_signature": "FluentListAssertTest.testHasMultipleClassesOkBanana()", "con...
{ "fields": [], "file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/FluentListAssert.java", "identifier": "FluentListAssert", "interfaces": "implements ListStateAssert, ListAttributeAssert", "methods": [ { "class_method_signature": "FluentListAssert.FluentListAssert(FluentLis...
{ "body": "@Override\n public FluentListAssert hasClass(String classToFind) {\n return validateHasClasses(\"No selected elements have class: \", classToFind);\n }", "class_method_signature": "FluentListAssert.hasClass(String classToFind)", "constructor": false, "full_signature": "@Override public F...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_426
{ "fields": [], "file": "fluentlenium-core/src/test/java/org/fluentlenium/core/filter/matcher/NotContainsMatcherTest.java", "identifier": "NotContainsMatcherTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldNotContainString() {\n NotContainsMatcher matcher = new NotContainsMatcher(\"some value\");\n\n assertThat(matcher.isSatisfiedBy(\"non-matching\")).isTrue();\n }", "class_method_signature": "NotContainsMatcherTest.shouldNotContainString()", "constructor": f...
{ "fields": [], "file": "fluentlenium-core/src/main/java/org/fluentlenium/core/filter/matcher/NotContainsMatcher.java", "identifier": "NotContainsMatcher", "interfaces": "", "methods": [ { "class_method_signature": "NotContainsMatcher.NotContainsMatcher(String value)", "constructor": true, ...
{ "body": "@Override\n public boolean isSatisfiedBy(String currentValue) {\n return !CalculateService.contains(getPattern(), getValue(), currentValue);\n }", "class_method_signature": "NotContainsMatcher.isSatisfiedBy(String currentValue)", "constructor": false, "full_signature": "@Override public ...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_0
{ "fields": [ { "declarator": "context", "modifier": "@Mock\n private", "original_string": "@Mock\n private ExtensionContext context;", "type": "ExtensionContext", "var_name": "context" }, { "declarator": "sut", "modifier": "private", "original_string"...
{ "body": "@Test\n void testBeforeEach() {\n sut.beforeEach(context);\n verify(test)._starting(eq(Test1.class), eq(\"test1\"));\n }", "class_method_signature": "FluentJUnitJupiterTest.testBeforeEach()", "constructor": false, "full_signature": "@Test void testBeforeEach()", "identifier": "t...
{ "fields": [], "file": "fluentlenium-junit-jupiter/src/main/java/org/fluentlenium/adapter/junit/jupiter/FluentJUnitJupiter.java", "identifier": "FluentJUnitJupiter", "interfaces": "implements BeforeEachCallback, AfterEachCallback, AfterAllCallback", "methods": [ { "class_method_signature": "FluentJ...
{ "body": "@Override\n public void beforeEach(ExtensionContext context) {\n FluentTest instance = testInstanceOf(context);\n instance._starting(testClassOf(context), testNameOf(context));\n }", "class_method_signature": "FluentJUnitJupiter.beforeEach(ExtensionContext context)", "constructor": ...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_125
{ "fields": [ { "declarator": "fluentList", "modifier": "@Mock\n private", "original_string": "@Mock\n private FluentList<FluentWebElement> fluentList;", "type": "FluentList<FluentWebElement>", "var_name": "fluentList" }, { "declarator": "listAssert", "modif...
{ "body": "@Test\n public void shouldFailWhenAtLeastOneElementHasClass() {\n when(fluentList.attributes(\"class\")).thenReturn(Lists.newArrayList(\"some-class\", \"unknown-class\"));\n assertThatAssertionErrorIsThrownBy(() -> listAssert.hasNotClass(\"some-class\"))\n .hasMessage(\"At l...
{ "fields": [], "file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/FluentListAssert.java", "identifier": "FluentListAssert", "interfaces": "implements ListStateAssert, ListAttributeAssert", "methods": [ { "class_method_signature": "FluentListAssert.FluentListAssert(FluentLis...
{ "body": "@Override\n public FluentListAssert hasNotClass(String htmlClass) {\n notHasClasses(\"At least one selected element has class: \", htmlClass);\n return this;\n }", "class_method_signature": "FluentListAssert.hasNotClass(String htmlClass)", "constructor": false, "full_signature": "...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_575
{ "fields": [ { "declarator": "element1", "modifier": "@Mock\n private", "original_string": "@Mock\n private FluentWebElement element1;", "type": "FluentWebElement", "var_name": "element1" }, { "declarator": "element2", "modifier": "@Mock\n private", ...
{ "body": "@Test\n public void testSingle() {\n assertThat(singleList.single()).isSameAs(element2);\n\n assertThatThrownBy(() -> list.single()).isExactlyInstanceOf(AssertionError.class)\n .hasMessageContaining(\"list should contain one element only but th...
{ "fields": [ { "declarator": "DEFAULT_WAIT_AND_CLICK_DURATION = Duration.ofSeconds(5)", "modifier": "private static final", "original_string": "private static final Duration DEFAULT_WAIT_AND_CLICK_DURATION = Duration.ofSeconds(5);", "type": "Duration", "var_name": "DEFAULT_WAIT_AND_...
{ "body": "@Override\n public E single() {\n if (size() > 1) {\n throw new AssertionError(\n String.format(\"%s list should contain one element only but there are [ %s ] elements instead\",\n LocatorProxies.getMessageContext(proxy), size()));\n ...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_430
{ "fields": [], "file": "fluentlenium-core/src/test/java/org/fluentlenium/core/filter/matcher/NotEndsWithMatcherTest.java", "identifier": "NotEndsWithMatcherTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldNotEndWithString() {\n NotEndsWithMatcher matcher = new NotEndsWithMatcher(\"some value\");\n\n assertThat(matcher.isSatisfiedBy(\"non-matching\")).isTrue();\n }", "class_method_signature": "NotEndsWithMatcherTest.shouldNotEndWithString()", "constructor": f...
{ "fields": [], "file": "fluentlenium-core/src/main/java/org/fluentlenium/core/filter/matcher/NotEndsWithMatcher.java", "identifier": "NotEndsWithMatcher", "interfaces": "", "methods": [ { "class_method_signature": "NotEndsWithMatcher.NotEndsWithMatcher(String value)", "constructor": true, ...
{ "body": "@Override\n public boolean isSatisfiedBy(String currentValue) {\n return !CalculateService.endsWith(getPattern(), getValue(), currentValue);\n }", "class_method_signature": "NotEndsWithMatcher.isSatisfiedBy(String currentValue)", "constructor": false, "full_signature": "@Override public ...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_349
{ "fields": [], "file": "fluentlenium-core/src/test/java/org/fluentlenium/core/conditions/StringConditionsImplTest.java", "identifier": "StringConditionsImplTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldReturnFalseIsNotContainsString() {\n StringConditions stringConditions = new StringConditionsImpl(\"Some magical text.\");\n\n assertThat(stringConditions.contains(\"element\")).isFalse();\n }", "class_method_signature": "StringConditionsImplTest.shouldReturn...
{ "fields": [], "file": "fluentlenium-core/src/main/java/org/fluentlenium/core/conditions/StringConditionsImpl.java", "identifier": "StringConditionsImpl", "interfaces": "implements StringConditions", "methods": [ { "class_method_signature": "StringConditionsImpl.StringConditionsImpl(String string)"...
{ "body": "@Override\n public boolean contains(CharSequence charSequence) {\n return verify(input -> {\n if (input == null) {\n return false;\n }\n return input.contains(charSequence);\n });\n }", "class_method_signature": "StringConditionsImpl.con...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_522
{ "fields": [ { "declarator": "keyboard", "modifier": "@Mock\n private", "original_string": "@Mock\n private Keyboard keyboard;", "type": "Keyboard", "var_name": "keyboard" }, { "declarator": "mouse", "modifier": "@Mock\n private", "original_string"...
{ "body": "@Test\n public void testKeyDownWebElement() {\n KeyboardElementActions actions = new KeyboardElementActions(driver, element);\n actions.keyDown(Keys.SHIFT);\n\n verify(mouse).click(coordinates);\n verify(keyboard).pressKey(Keys.SHIFT);\n }", "class_method_signature": "Ke...
{ "fields": [ { "declarator": "driver", "modifier": "private final", "original_string": "private final WebDriver driver;", "type": "WebDriver", "var_name": "driver" }, { "declarator": "element", "modifier": "private final", "original_string": "private final ...
{ "body": "public KeyboardElementActions keyDown(Keys theKey) {\n loadElementAndPerform(actions().keyDown(element, theKey));\n return this;\n }", "class_method_signature": "KeyboardElementActions.keyDown(Keys theKey)", "constructor": false, "full_signature": "public KeyboardElementActions keyDo...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_172
{ "fields": [ { "declarator": "DRIVER_LIFECYCLE = \"driverLifecycle\"", "modifier": "private static final", "original_string": "private static final String DRIVER_LIFECYCLE = \"driverLifecycle\";", "type": "String", "var_name": "DRIVER_LIFECYCLE" }, { "declarator": "ret...
{ "body": "@Test\n public void htmlDumpPath() {\n assertThat(getConfiguration().getHtmlDumpPath()).isNull();\n\n mockProperty(\"htmlDumpPath\", \"/path/\");\n assertThat(getConfiguration().getHtmlDumpPath()).isEqualTo(\"/path/\");\n }", "class_method_signature": "PropertiesBackendConfigur...
{ "fields": [ { "declarator": "PROPERTIES_PREFIX = \"fluentlenium.\"", "modifier": "static final", "original_string": "static final String PROPERTIES_PREFIX = \"fluentlenium.\";", "type": "String", "var_name": "PROPERTIES_PREFIX" }, { "declarator": "prefixes", "mo...
{ "body": "@Override\n public String getHtmlDumpPath() {\n return getStringProperty(\"htmlDumpPath\");\n }", "class_method_signature": "PropertiesBackendConfiguration.getHtmlDumpPath()", "constructor": false, "full_signature": "@Override public String getHtmlDumpPath()", "identifier": "getHtmlDum...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_488
{ "fields": [], "file": "fluentlenium-core/src/test/java/org/fluentlenium/core/wait/TimeToChronoUnitConverterTest.java", "identifier": "TimeToChronoUnitConverterTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldReturnCorrectChronoUnit() {\n\n SoftAssertions assertions = new SoftAssertions();\n\n assertions.assertThat(TimeToChronoUnitConverter.of(TimeUnit.MICROSECONDS)).isEqualTo(ChronoUnit.MICROS);\n assertions.assertThat(TimeToChronoUnitConverter.of(TimeUnit.NANO...
{ "fields": [ { "declarator": "TIME_UNIT_TO_CHRONO_UNIT = new HashMap<>()", "modifier": "private static final", "original_string": "private static final Map<TimeUnit, ChronoUnit> TIME_UNIT_TO_CHRONO_UNIT = new HashMap<>();", "type": "Map<TimeUnit, ChronoUnit>", "var_name": "TIME_UNIT...
{ "body": "public static ChronoUnit of(TimeUnit unit) {\n return Optional.ofNullable(TIME_UNIT_TO_CHRONO_UNIT.get(unit))\n .orElseThrow(() -> new IllegalArgumentException(\"Unsupported TimeUnit.\"));\n }", "class_method_signature": "TimeToChronoUnitConverter.of(TimeUnit unit)", "construct...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_467
{ "fields": [ { "declarator": "fluentControlWait", "modifier": "@Mock\n private", "original_string": "@Mock\n private FluentWait fluentControlWait;", "type": "FluentWait", "var_name": "fluentControlWait" }, { "declarator": "fluentList", "modifier": "@Mock\n ...
{ "body": "@Test\n public void ignoreAll() {\n Collection<Class<? extends Throwable>> classes = new ArrayList<>();\n\n assertThat(wait.ignoreAll(classes)).isSameAs(wait);\n Mockito.verify(fluentControlWait).ignoreAll(classes);\n }", "class_method_signature": "FluentWaitElementListTest.ign...
{ "fields": [ { "declarator": "elements", "modifier": "private final", "original_string": "private final List<? extends FluentWebElement> elements;", "type": "List<? extends FluentWebElement>", "var_name": "elements" }, { "declarator": "controlWait", "modifier": "...
{ "body": "@Override\n public FluentWaitElementList ignoreAll(Collection<Class<? extends Throwable>> types) {\n controlWait.ignoreAll(types);\n return this;\n }", "class_method_signature": "FluentWaitElementList.ignoreAll(Collection<Class<? extends Throwable>> types)", "constructor": false, ...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_386
{ "fields": [ { "declarator": "conditions", "modifier": "private", "original_string": "private AtLeastOneElementConditions conditions;", "type": "AtLeastOneElementConditions", "var_name": "conditions" } ], "file": "fluentlenium-core/src/test/java/org/fluentlenium/core/conditi...
{ "body": "@Test\n public void hasSize() {\n assertThat(conditions.size(3)).isTrue();\n assertThat(conditions.size().equalTo(3)).isTrue();\n assertThat(conditions.size(2)).isFalse();\n assertThat(conditions.size().equalTo(2)).isFalse();\n\n assertThat(conditions.not().size(3)).is...
{ "fields": [], "file": "fluentlenium-core/src/main/java/org/fluentlenium/core/conditions/AtLeastOneElementConditions.java", "identifier": "AtLeastOneElementConditions", "interfaces": "", "methods": [ { "class_method_signature": "AtLeastOneElementConditions.AtLeastOneElementConditions(List<? extends...
{ "body": "@Override\n public AtLeastOneElementConditions not() {\n AtLeastOneElementConditions negatedConditions = new AtLeastOneElementConditions(getElements());\n negatedConditions.setNegation(!isNegation());\n return negatedConditions;\n }", "class_method_signature": "AtLeastOneElemen...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_369
{ "fields": [ { "declarator": "webElement", "modifier": "@Mock\n private", "original_string": "@Mock\n private WebElement webElement;", "type": "WebElement", "var_name": "webElement" }, { "declarator": "webDriver", "modifier": "@Mock\n private", "or...
{ "body": "@Test\n public void isVerified() {\n assertThat(conditions.verify(predicate -> true)).isTrue();\n assertThat(conditions.verify(predicate -> false)).isFalse();\n\n assertThat(conditions.not().verify(predicate -> true)).isFalse();\n assertThat(conditions.not().verify(predicate ...
{ "fields": [], "file": "fluentlenium-core/src/main/java/org/fluentlenium/core/conditions/WebElementConditions.java", "identifier": "WebElementConditions", "interfaces": "implements FluentConditions", "methods": [ { "class_method_signature": "WebElementConditions.WebElementConditions(FluentWebElemen...
{ "body": "@Override\n @Negation\n public WebElementConditions not() {\n return (WebElementConditions) super.not();\n }", "class_method_signature": "WebElementConditions.not()", "constructor": false, "full_signature": "@Override @Negation public WebElementConditions not()", "identifier": "not"...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_410
{ "fields": [], "file": "fluentlenium-core/src/test/java/org/fluentlenium/core/filter/matcher/EqualMatcherTest.java", "identifier": "EqualMatcherTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldEqualToPattern() {\n EndsWithMatcher matcher = new EndsWithMatcher(Pattern.compile(\"^.*me valu.*\"));\n\n assertThat(matcher.isSatisfiedBy(\"some value\")).isTrue();\n }", "class_method_signature": "EqualMatcherTest.shouldEqualToPattern()", "constructor": ...
{ "fields": [], "file": "fluentlenium-core/src/main/java/org/fluentlenium/core/filter/matcher/EqualMatcher.java", "identifier": "EqualMatcher", "interfaces": "", "methods": [ { "class_method_signature": "EqualMatcher.EqualMatcher(String value)", "constructor": true, "full_signature": "pu...
{ "body": "@Override\n public boolean isSatisfiedBy(String currentValue) {\n return CalculateService.equal(getPattern(), getValue(), currentValue);\n }", "class_method_signature": "EqualMatcher.isSatisfiedBy(String currentValue)", "constructor": false, "full_signature": "@Override public boolean is...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_105
{ "fields": [ { "declarator": "fluentList", "modifier": "@Mock\n private", "original_string": "@Mock\n private FluentList<FluentWebElement> fluentList;", "type": "FluentList<FluentWebElement>", "var_name": "fluentList" }, { "declarator": "listAssert", "modif...
{ "body": "@Test\n public void testHasSizeLessThanOrEqualToOk() {\n when(fluentList.count()).thenReturn(7);\n listAssert.hasSize().lessThanOrEqualTo(7);\n listAssert.hasSize().lessThanOrEqualTo(8);\n }", "class_method_signature": "FluentListAssertTest.testHasSizeLessThanOrEqualToOk()", ...
{ "fields": [], "file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/FluentListAssert.java", "identifier": "FluentListAssert", "interfaces": "implements ListStateAssert, ListAttributeAssert", "methods": [ { "class_method_signature": "FluentListAssert.FluentListAssert(FluentLis...
{ "body": "@Override\n public FluentListAssert hasSize(int expectedSize) {\n int actualSize = actual.count();\n if (actualSize != expectedSize) {\n failWithMessage(\"Expected size: \" + expectedSize + \". Actual size: \" + actualSize + \".\");\n }\n return this;\n }", "c...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_555
{ "fields": [ { "declarator": "driver", "modifier": "@Mock\n private", "original_string": "@Mock\n private WebDriver driver;", "type": "WebDriver", "var_name": "driver" }, { "declarator": "search", "modifier": "@Mock\n private", "original_string": "...
{ "body": "@Test\n public void testFillElement() {\n FillSelect fillConstructor = new FillSelect(fluentAdapter.newFluent(element1));\n\n WebElement option1 = mock(WebElement.class);\n\n when(element1.findElements(any(By.class))).thenReturn(singletonList(option1));\n\n fillConstructor.wi...
{ "fields": [], "file": "fluentlenium-core/src/main/java/org/fluentlenium/core/action/FillSelect.java", "identifier": "FillSelect", "interfaces": "", "methods": [ { "class_method_signature": "FillSelect.FillSelect(FluentList<E> list)", "constructor": true, "full_signature": "public Fill...
{ "body": "public FillSelect withValue(String value) {\n return doSelect(select -> select.selectByValue(value));\n }", "class_method_signature": "FillSelect.withValue(String value)", "constructor": false, "full_signature": "public FillSelect withValue(String value)", "identifier": "withValue", "in...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_92
{ "fields": [ { "declarator": "fluentList", "modifier": "@Mock\n private", "original_string": "@Mock\n private FluentList<FluentWebElement> fluentList;", "type": "FluentList<FluentWebElement>", "var_name": "fluentList" }, { "declarator": "listAssert", "modif...
{ "body": "@Test\n public void testHasNotTextOk() {\n when(fluentList.texts()).thenReturn(singletonList(\"other text\"));\n listAssert.hasNotText(\"some text\");\n }", "class_method_signature": "FluentListAssertTest.testHasNotTextOk()", "constructor": false, "full_signature": "@Test public v...
{ "fields": [], "file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/FluentListAssert.java", "identifier": "FluentListAssert", "interfaces": "implements ListStateAssert, ListAttributeAssert", "methods": [ { "class_method_signature": "FluentListAssert.FluentListAssert(FluentLis...
{ "body": "@Override\n public FluentListAssert hasNotText(String textToFind) {\n List<String> actualTexts = requiresNonEmpty(actual.texts());\n for (String text : actualTexts) {\n if (text.contains(textToFind)) {\n failWithMessage(\n \"At least one sel...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_294
{ "fields": [ { "declarator": "factory = new PerformanceTimingMetricsFactory()", "modifier": "private final", "original_string": "private final PerformanceTimingMetricsFactory factory = new PerformanceTimingMetricsFactory();", "type": "PerformanceTimingMetricsFactory", "var_name": "f...
{ "body": "@Test\n public void shouldCreateHtmlUnitMetricsFactory() {\n PerformanceTiming htmlUnitPerformanceTiming = new PerformanceTiming();\n\n assertThat(factory.createFor(htmlUnitPerformanceTiming)).isInstanceOf(HtmlUnitPerformanceTimingMetrics.class);\n }", "class_method_signature": "Perfo...
{ "fields": [], "file": "fluentlenium-core/src/main/java/org/fluentlenium/core/performance/PerformanceTimingMetricsFactory.java", "identifier": "PerformanceTimingMetricsFactory", "interfaces": "", "methods": [ { "class_method_signature": "PerformanceTimingMetricsFactory.createFor(Object performanceT...
{ "body": "@SuppressWarnings(\"unchecked\")\n public PerformanceTimingMetrics createFor(Object performanceTiming) {\n PerformanceTimingMetrics metrics;\n\n if (performanceTiming instanceof Map) {\n metrics = new DefaultPerformanceTimingMetrics((Map<String, Object>) performanceTiming);\n ...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_447
{ "fields": [], "file": "fluentlenium-core/src/test/java/org/fluentlenium/core/filter/matcher/CalculateServiceTest.java", "identifier": "CalculateServiceTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void checkPatternStartsWithNok() {\n assertThat(CalculateService.startsWith(Pattern.compile(\"[ta]*]\"), null, \"tot\")).isFalse();\n }", "class_method_signature": "CalculateServiceTest.checkPatternStartsWithNok()", "constructor": false, "full_signature": "@Test public voi...
{ "fields": [], "file": "fluentlenium-core/src/main/java/org/fluentlenium/core/filter/matcher/CalculateService.java", "identifier": "CalculateService", "interfaces": "", "methods": [ { "class_method_signature": "CalculateService.CalculateService()", "constructor": true, "full_signature":...
{ "body": "public static boolean startsWith(Pattern patternValue, String referenceValue, String currentValue) {\n if (currentValue == null) {\n return false;\n }\n if (patternValue == null) {\n return currentValue.startsWith(referenceValue);\n }\n java.util.reg...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_502
{ "fields": [ { "declarator": "fluentControlWait", "modifier": "@Mock\n private", "original_string": "@Mock\n private FluentWait fluentControlWait;", "type": "FluentWait", "var_name": "fluentControlWait" }, { "declarator": "fluentWebElement", "modifier": "@M...
{ "body": "@Test\n public void withMessageSupplier() {\n Supplier<String> message = () -> \"test\";\n\n wait.withMessage(message);\n Mockito.verify(fluentControlWait).withMessage(message);\n }", "class_method_signature": "FluentWaitElementTest.withMessageSupplier()", "constructor": fals...
{ "fields": [ { "declarator": "element", "modifier": "private final", "original_string": "private final FluentWebElement element;", "type": "FluentWebElement", "var_name": "element" }, { "declarator": "controlWait", "modifier": "private final", "original_str...
{ "body": "@Override\n public FluentWaitElement withMessage(Supplier<String> message) {\n controlWait.withMessage(message);\n return this;\n }", "class_method_signature": "FluentWaitElement.withMessage(Supplier<String> message)", "constructor": false, "full_signature": "@Override public Flue...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_152
{ "fields": [ { "declarator": "DRIVER_LIFECYCLE = \"driverLifecycle\"", "modifier": "private static final", "original_string": "private static final String DRIVER_LIFECYCLE = \"driverLifecycle\";", "type": "String", "var_name": "DRIVER_LIFECYCLE" }, { "declarator": "ret...
{ "body": "@Test\n public void configurationDefaults() {\n assertThat(getConfiguration().getConfigurationDefaults()).isNull();\n\n mockProperty(\"configurationDefaults\", DummyConfigurationDefaults.class);\n assertThat(getConfiguration().getConfigurationDefaults()).isEqualTo(DummyConfiguration...
{ "fields": [ { "declarator": "PROPERTIES_PREFIX = \"fluentlenium.\"", "modifier": "static final", "original_string": "static final String PROPERTIES_PREFIX = \"fluentlenium.\";", "type": "String", "var_name": "PROPERTIES_PREFIX" }, { "declarator": "prefixes", "mo...
{ "body": "@Override\n public Class<? extends ConfigurationProperties> getConfigurationDefaults() {\n return getClassProperty(ConfigurationDefaults.class, \"configurationDefaults\");\n }", "class_method_signature": "PropertiesBackendConfiguration.getConfigurationDefaults()", "constructor": false, "...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_84
{ "fields": [ { "declarator": "alert", "modifier": "@Mock\n private", "original_string": "@Mock\n private AlertImpl alert;", "type": "AlertImpl", "var_name": "alert" }, { "declarator": "alertAssert", "modifier": "private", "original_string": "private A...
{ "body": "@Test\n public void testIsPresentPositive() {\n when(alert.present()).thenReturn(true);\n alertAssert.isPresent();\n verify(alert).present();\n }", "class_method_signature": "AlertAssertTest.testIsPresentPositive()", "constructor": false, "full_signature": "@Test public voi...
{ "fields": [], "file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/AlertAssert.java", "identifier": "AlertAssert", "interfaces": "implements AlertStateAssert", "methods": [ { "class_method_signature": "AlertAssert.AlertAssert(AlertImpl actual)", "constructor": true, ...
{ "body": "@Override\n public AlertStateAssert isPresent() {\n if (!actual.present()) {\n failWithMessage(\"There is no alert box\");\n }\n return this;\n }", "class_method_signature": "AlertAssert.isPresent()", "constructor": false, "full_signature": "@Override public Aler...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_282
{ "fields": [], "file": "fluentlenium-core/src/test/java/org/fluentlenium/core/url/UrlTemplateTest.java", "identifier": "UrlTemplateTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testParseOptionalParameter() {\n UrlTemplate urlParametersTemplate = new UrlTemplate(\"/abc/{param1}/def/{param2}{?/param3}\");\n assertThat(getParameterNames(urlParametersTemplate)).containsExactly(\"param1\", \"param2\", \"param3\");\n assertThat(getParameterOp...
{ "fields": [ { "declarator": "PARAM_REGEX = Pattern.compile(\"\\\\{(.+?)\\\\}\")", "modifier": "private static final", "original_string": "private static final Pattern PARAM_REGEX = Pattern.compile(\"\\\\{(.+?)\\\\}\");", "type": "Pattern", "var_name": "PARAM_REGEX" }, { ...
{ "body": "public ParsedUrlTemplate parse(String input) {\n String noQueryInput;\n List<NameValuePair> queryParameters;\n\n try {\n URIBuilder uriBuilder = new URIBuilder(input);\n queryParameters = uriBuilder.getQueryParams();\n uriBuilder.setCustomQuery(null);\n...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_328
{ "fields": [ { "declarator": "locator", "modifier": "@Mock\n private", "original_string": "@Mock\n private ElementLocator locator;", "type": "ElementLocator", "var_name": "locator" }, { "declarator": "invocationHandler", "modifier": "private", "origin...
{ "body": "@Test\n public void testLoadedNotEqualsWithRetry() throws Throwable {\n WebElement proxy = mock(WebElement.class);\n Method equals = getMethod(\"equals\", Object.class);\n Object[] args = {mock(WebElement.class)};\n when(invocationHandler.loaded()).thenReturn(true);\n ...
{ "fields": [ { "declarator": "TO_STRING = getMethod(Object.class, \"toString\")", "modifier": "private static final", "original_string": "private static final Method TO_STRING = getMethod(Object.class, \"toString\");", "type": "Method", "var_name": "TO_STRING" }, { "de...
{ "body": "@Override\n public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {\n Object invocationResult = null;\n if (TO_STRING.equals(method)) {\n invocationResult = proxyToString(loaded() ? (String) invoke(method, args) : null);\n } else if (loaded()) ...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_451
{ "fields": [], "file": "fluentlenium-core/src/test/java/org/fluentlenium/core/filter/matcher/CalculateServiceTest.java", "identifier": "CalculateServiceTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void checkSimpleEndsWithNok() {\n assertThat(CalculateService.endsWith(null, \"la\", \"la to to\")).isFalse();\n }", "class_method_signature": "CalculateServiceTest.checkSimpleEndsWithNok()", "constructor": false, "full_signature": "@Test public void checkSimpleEndsWithNok...
{ "fields": [], "file": "fluentlenium-core/src/main/java/org/fluentlenium/core/filter/matcher/CalculateService.java", "identifier": "CalculateService", "interfaces": "", "methods": [ { "class_method_signature": "CalculateService.CalculateService()", "constructor": true, "full_signature":...
{ "body": "public static boolean endsWith(Pattern patternValue, String referenceValue, String currentValue) {\n if (currentValue == null || currentValue.isEmpty()) {\n return false;\n }\n if (patternValue == null) {\n return currentValue.endsWith(referenceValue);\n }\...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_144
{ "fields": [ { "declarator": "retriever", "modifier": "private", "original_string": "private CapabilitiesConfigurationPropertyRetriever retriever;", "type": "CapabilitiesConfigurationPropertyRetriever", "var_name": "retriever" } ], "file": "fluentlenium-core/src/test/java/or...
{ "body": "@Test\n public void shouldFailExceptionWhenJSONStringCannotBeConverted() {\n assertThatExceptionOfType(ConfigurationException.class)\n .isThrownBy(() -> retriever.getCapabilitiesProperty(\"{\\\"javascriptEnabled\\\": true\", null))\n .withMessage(\"Can't convert JSON...
{ "fields": [ { "declarator": "jsonConverter = new Json()", "modifier": "private final", "original_string": "private final Json jsonConverter = new Json();", "type": "Json", "var_name": "jsonConverter" } ], "file": "fluentlenium-core/src/main/java/org/fluentlenium/configurati...
{ "body": "Capabilities getCapabilitiesProperty(String capabilities, ConfigurationProperties globalConfiguration) {\n String property = readCapabilitiesFromUrl(capabilities);\n return Optional.ofNullable(createCapabilitiesFromFactory(property, globalConfiguration))\n .orElseGet(() -> conv...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_514
{ "fields": [ { "declarator": "fluentControlWait", "modifier": "@Mock\n private", "original_string": "@Mock\n private FluentWait fluentControlWait;", "type": "FluentWait", "var_name": "fluentControlWait" }, { "declarator": "fluentWebElement", "modifier": "@M...
{ "body": "@Test\n public void explicitlyForMillis() {\n long amount = 10;\n\n wait.explicitlyFor(amount);\n Mockito.verify(fluentControlWait).explicitlyFor(amount, TimeUnit.MILLISECONDS);\n }", "class_method_signature": "FluentWaitElementTest.explicitlyForMillis()", "constructor": fals...
{ "fields": [ { "declarator": "element", "modifier": "private final", "original_string": "private final FluentWebElement element;", "type": "FluentWebElement", "var_name": "element" }, { "declarator": "controlWait", "modifier": "private final", "original_str...
{ "body": "@Override\n public FluentWaitElement explicitlyFor(long amount, TimeUnit timeUnit) {\n controlWait.explicitlyFor(amount, timeUnit);\n return this;\n }", "class_method_signature": "FluentWaitElement.explicitlyFor(long amount, TimeUnit timeUnit)", "constructor": false, "full_signatu...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_390
{ "fields": [ { "declarator": "element", "modifier": "@Mock\n private", "original_string": "@Mock\n private WebElement element;", "type": "WebElement", "var_name": "element" }, { "declarator": "driver", "modifier": "@Mock\n private", "original_strin...
{ "body": "@Test\n public void testFollowings() {\n Dom dom = new Dom(element, instantiator);\n\n List<WebElement> elements = Arrays.asList(mock(WebElement.class), mock(WebElement.class), mock(WebElement.class));\n when(element.findElements(By.xpath(\"following::*\"))).thenReturn(elements);\n\...
{ "fields": [ { "declarator": "webElement", "modifier": "private final", "original_string": "private final WebElement webElement;", "type": "WebElement", "var_name": "webElement" }, { "declarator": "instantiator", "modifier": "private final", "original_strin...
{ "body": "public FluentList<FluentWebElement> followings() {\n return handleAxe(\"following\");\n }", "class_method_signature": "Dom.followings()", "constructor": false, "full_signature": "public FluentList<FluentWebElement> followings()", "identifier": "followings", "invocations": [ "handleA...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_406
{ "fields": [ { "declarator": "A_VALUE = \"value\"", "modifier": "private static final", "original_string": "private static final String A_VALUE = \"value\";", "type": "String", "var_name": "A_VALUE" }, { "declarator": "A_REGEX_VALUE = \"regex.*\"", "modifier": "p...
{ "body": "@Test\n public void shouldNotSupportCssFilterWhenAttributeIsText() {\n AbstractMatcher matcher = new EqualMatcher(Pattern.compile(A_REGEX_VALUE));\n AttributeFilter attributeFilter = new AttributeFilter(\"text\", matcher);\n\n assertThat(attributeFilter.isCssFilterSupported()).isFal...
{ "fields": [ { "declarator": "attributeName", "modifier": "private final", "original_string": "private final String attributeName;", "type": "String", "var_name": "attributeName" }, { "declarator": "matcher", "modifier": "private final", "original_string": ...
{ "body": "@Override\n public boolean isCssFilterSupported() {\n return matcher != null\n && matcher.isCssFilterSupported()\n && !\"text\".equalsIgnoreCase(getAttribute())\n && !\"textContent\".equalsIgnoreCase(getAttribute());\n }", "class_method_signature": "Attribute...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_543
{ "fields": [ { "declarator": "keyboard", "modifier": "@Mock\n private", "original_string": "@Mock\n private Keyboard keyboard;", "type": "Keyboard", "var_name": "keyboard" }, { "declarator": "mouse", "modifier": "@Mock\n private", "original_string"...
{ "body": "@Test\n public void testClick() {\n MouseActions actions = new MouseActions(driver);\n actions.click();\n\n verify(mouse, never()).mouseMove(any(Coordinates.class));\n verify(mouse).click(any());\n }", "class_method_signature": "MouseActionsTest.testClick()", "construc...
{ "fields": [ { "declarator": "driver", "modifier": "private final", "original_string": "private final WebDriver driver;", "type": "WebDriver", "var_name": "driver" } ], "file": "fluentlenium-core/src/main/java/org/fluentlenium/core/action/MouseActions.java", "identifier": ...
{ "body": "public MouseActions click() {\n actions().click().perform();\n return this;\n }", "class_method_signature": "MouseActions.click()", "constructor": false, "full_signature": "public MouseActions click()", "identifier": "click", "invocations": [ "perform", "click", "acti...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_113
{ "fields": [ { "declarator": "fluentList", "modifier": "@Mock\n private", "original_string": "@Mock\n private FluentList<FluentWebElement> fluentList;", "type": "FluentList<FluentWebElement>", "var_name": "fluentList" }, { "declarator": "listAssert", "modif...
{ "body": "@Test\n public void testHasValueOk() {\n when(fluentList.values()).thenReturn(Lists.newArrayList(\"1\", \"2\", \"3\"));\n listAssert.hasValue(\"1\");\n }", "class_method_signature": "FluentListAssertTest.testHasValueOk()", "constructor": false, "full_signature": "@Test public void...
{ "fields": [], "file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/FluentListAssert.java", "identifier": "FluentListAssert", "interfaces": "implements ListStateAssert, ListAttributeAssert", "methods": [ { "class_method_signature": "FluentListAssert.FluentListAssert(FluentLis...
{ "body": "@Override\n public FluentListAssert hasValue(String value) {\n List<String> actualValues = requiresNonEmpty(actual.values());\n if (!actualValues.contains(value)) {\n failWithMessage(\"No selected elements have value: \" + value\n + \". Actual values found : \...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_47
{ "fields": [ { "declarator": "element", "modifier": "@Mock\n private", "original_string": "@Mock\n private FluentWebElement element;", "type": "FluentWebElement", "var_name": "element" }, { "declarator": "elementAssert", "modifier": "private", "origin...
{ "body": "@Test\n public void shouldFailWhenDoesntHaveAllClasses() {\n when(element.attribute(\"class\")).thenReturn(\"clazz clazz2 clazz3\");\n assertThatAssertionErrorIsThrownBy(() -> elementAssert.hasClasses(\"clazz\", \"clazz5\"))\n .hasMessage(\"The element does not have all clas...
{ "fields": [], "file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/FluentWebElementAssert.java", "identifier": "FluentWebElementAssert", "interfaces": "implements ElementStateAssert, ElementAttributeAssert", "methods": [ { "class_method_signature": "FluentWebElementAssert.Fl...
{ "body": "@Override\n public FluentWebElementAssert hasClasses(String... classesToFind) {\n String actualClasses = actual.attribute(CLASS_ATTRIBUTE);\n\n if (actualClasses == null) {\n failWithMessage(\"The element has no class attribute.\");\n }\n\n if (!getClasses(actualCl...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_304
{ "fields": [ { "declarator": "htmlUnitPerformanceTiming", "modifier": "@Mock\n private", "original_string": "@Mock\n private PerformanceTiming htmlUnitPerformanceTiming;", "type": "PerformanceTiming", "var_name": "htmlUnitPerformanceTiming" }, { "declarator": "me...
{ "body": "@Test\n public void shouldReturnRelativeValues() {\n assertThat(metrics.getUnloadEventStart()).isEqualTo(43500L);\n }", "class_method_signature": "HtmlUnitPerformanceTimingMetricsTest.shouldReturnRelativeValues()", "constructor": false, "full_signature": "@Test public void shouldReturnRe...
{ "fields": [ { "declarator": "timing", "modifier": "private final", "original_string": "private final PerformanceTiming timing;", "type": "PerformanceTiming", "var_name": "timing" }, { "declarator": "targetTimeUnit", "modifier": "private final", "original_s...
{ "body": "@Override\n public long getUnloadEventStart() {\n return getEventValue(timing::getUnloadEventStart);\n }", "class_method_signature": "HtmlUnitPerformanceTimingMetrics.getUnloadEventStart()", "constructor": false, "full_signature": "@Override public long getUnloadEventStart()", "identif...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_241
{ "fields": [], "file": "fluentlenium-core/src/test/java/org/fluentlenium/utils/UrlUtilsTest.java", "identifier": "UrlUtilsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSanitizeBaseUrlNull() {\n String baseUrl = UrlUtils.sanitizeBaseUrl(null, \"https://www.google.com/path/abc\");\n Assertions.assertThat(baseUrl).isNull();\n }", "class_method_signature": "UrlUtilsTest.testSanitizeBaseUrlNull()", "constructor": false, "full_...
{ "fields": [ { "declarator": "PATH_SEPARATOR = \"/\"", "modifier": "private static final", "original_string": "private static final String PATH_SEPARATOR = \"/\";", "type": "String", "var_name": "PATH_SEPARATOR" }, { "declarator": "HTTP = \"http\"", "modifier": "...
{ "body": "public static String sanitizeBaseUrl(String baseUriSpec, String uriSpec) {\n if (baseUriSpec != null) {\n URI baseUri = URI.create(baseUriSpec);\n\n try {\n baseUri = ensureScheme(baseUri, HTTP);\n\n URI uri = uriFromSpec(uriSpec);\n ...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_611
{ "fields": [ { "declarator": "element", "modifier": "@Mock\n private", "original_string": "@Mock\n private LocatableElement element;", "type": "LocatableElement", "var_name": "element" }, { "declarator": "driver", "modifier": "@Mock\n private", "or...
{ "body": "@Test\n public void testGetText() {\n when(element.getText()).thenReturn(\"test\");\n assertThat(fluentElement.text()).isEqualTo(\"test\");\n }", "class_method_signature": "FluentWebElementTest.testGetText()", "constructor": false, "full_signature": "@Test public void testGetText(...
{ "fields": [ { "declarator": "search", "modifier": "private final", "original_string": "private final Search search;", "type": "Search", "var_name": "search" }, { "declarator": "dom", "modifier": "private final", "original_string": "private final Dom dom;",...
{ "body": "public String text() {\n return webElement.getText();\n }", "class_method_signature": "FluentWebElement.text()", "constructor": false, "full_signature": "public String text()", "identifier": "text", "invocations": [ "getText" ], "modifiers": "public", "parameters": "()", "re...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_538
{ "fields": [ { "declarator": "keyboard", "modifier": "@Mock\n private", "original_string": "@Mock\n private Keyboard keyboard;", "type": "Keyboard", "var_name": "keyboard" }, { "declarator": "mouse", "modifier": "@Mock\n private", "original_string"...
{ "body": "@Test\n public void dragAndDropTo() {\n MouseElementActions actions = new MouseElementActions(driver, element);\n\n LocatableElement target = mock(LocatableElement.class);\n Coordinates targetCoordinates = mock(Coordinates.class);\n when(target.getCoordinates()).thenReturn(ta...
{ "fields": [ { "declarator": "driver", "modifier": "private final", "original_string": "private final WebDriver driver;", "type": "WebDriver", "var_name": "driver" }, { "declarator": "element", "modifier": "private final", "original_string": "private final ...
{ "body": "public MouseElementActions dragAndDropTo(WebElement target) {\n loadElementAndPerform(actions().dragAndDrop(element, target));\n return this;\n }", "class_method_signature": "MouseElementActions.dragAndDropTo(WebElement target)", "constructor": false, "full_signature": "public MouseE...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_168
{ "fields": [ { "declarator": "DRIVER_LIFECYCLE = \"driverLifecycle\"", "modifier": "private static final", "original_string": "private static final String DRIVER_LIFECYCLE = \"driverLifecycle\";", "type": "String", "var_name": "DRIVER_LIFECYCLE" }, { "declarator": "ret...
{ "body": "@Test\n public void driverLifecycleClass() {\n assertThat(getConfiguration().getDriverLifecycle()).isNull();\n\n mockProperty(DRIVER_LIFECYCLE, \"cLaSS\");\n assertThat(getConfiguration().getDriverLifecycle()).isEqualTo(ConfigurationProperties.DriverLifecycle.CLASS);\n }", "cla...
{ "fields": [ { "declarator": "PROPERTIES_PREFIX = \"fluentlenium.\"", "modifier": "static final", "original_string": "static final String PROPERTIES_PREFIX = \"fluentlenium.\";", "type": "String", "var_name": "PROPERTIES_PREFIX" }, { "declarator": "prefixes", "mo...
{ "body": "@Override\n public DriverLifecycle getDriverLifecycle() {\n return getEnumProperty(DriverLifecycle.class, \"driverLifecycle\");\n }", "class_method_signature": "PropertiesBackendConfiguration.getDriverLifecycle()", "constructor": false, "full_signature": "@Override public DriverLifecycle...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_492
{ "fields": [ { "declarator": "fluentControlWait", "modifier": "@Mock\n private", "original_string": "@Mock\n private FluentWait fluentControlWait;", "type": "FluentWait", "var_name": "fluentControlWait" }, { "declarator": "fluentWebElement", "modifier": "@M...
{ "body": "@Test\n public void atMostDuration() {\n assertThat(wait.atMost(Duration.ofMillis(10))).isSameAs(wait);\n Mockito.verify(fluentControlWait).atMost(Duration.ofMillis(10));\n }", "class_method_signature": "FluentWaitElementTest.atMostDuration()", "constructor": false, "full_signatur...
{ "fields": [ { "declarator": "element", "modifier": "private final", "original_string": "private final FluentWebElement element;", "type": "FluentWebElement", "var_name": "element" }, { "declarator": "controlWait", "modifier": "private final", "original_str...
{ "body": "@Override\n public FluentWaitElement atMost(Duration duration) {\n controlWait.atMost(duration);\n return this;\n }", "class_method_signature": "FluentWaitElement.atMost(Duration duration)", "constructor": false, "full_signature": "@Override public FluentWaitElement atMost(Duratio...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_187
{ "fields": [ { "declarator": "configuration", "modifier": "private static", "original_string": "private static AnnotationConfiguration configuration;", "type": "AnnotationConfiguration", "var_name": "configuration" }, { "declarator": "defaultConfiguration", "modi...
{ "body": "@Test\n public void driverLifecycle() {\n Assertions.assertThat(noConfiguration.getDriverLifecycle()).isNull();\n Assertions.assertThat(defaultConfiguration.getDriverLifecycle()).isNull();\n\n Assertions.assertThat(configuration.getDriverLifecycle()).isEqualTo(ConfigurationPropertie...
{ "fields": [ { "declarator": "configuration", "modifier": "private final", "original_string": "private final FluentConfiguration configuration;", "type": "FluentConfiguration", "var_name": "configuration" }, { "declarator": "customProperties = new HashMap<>()", "...
{ "body": "@Override\n public DriverLifecycle getDriverLifecycle() {\n return getConfig(() -> getDriverLifecycleValue(configuration.driverLifecycle()));\n }", "class_method_signature": "AnnotationConfiguration.getDriverLifecycle()", "constructor": false, "full_signature": "@Override public DriverLi...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_353
{ "fields": [], "file": "fluentlenium-core/src/test/java/org/fluentlenium/core/conditions/StringConditionsImplTest.java", "identifier": "StringConditionsImplTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldReturnFalseForStartsWithIfTargetStringIsNull() {\n StringConditions stringConditions = new StringConditionsImpl(null);\n\n assertThat(stringConditions.startsWith(\"magical\")).isFalse();\n }", "class_method_signature": "StringConditionsImplTest.shouldReturnFa...
{ "fields": [], "file": "fluentlenium-core/src/main/java/org/fluentlenium/core/conditions/StringConditionsImpl.java", "identifier": "StringConditionsImpl", "interfaces": "implements StringConditions", "methods": [ { "class_method_signature": "StringConditionsImpl.StringConditionsImpl(String string)"...
{ "body": "@Override\n public boolean startsWith(String prefix) {\n return verify(input -> {\n if (input == null) {\n return false;\n }\n return input.startsWith(prefix);\n });\n }", "class_method_signature": "StringConditionsImpl.startsWith(String...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_10
{ "fields": [ { "declarator": "element", "modifier": "@Mock\n private", "original_string": "@Mock\n private FluentWebElement element;", "type": "FluentWebElement", "var_name": "element" }, { "declarator": "elementAssert", "modifier": "private", "origin...
{ "body": "@Test\n public void testIsNotClickableKo() {\n when(element.present()).thenReturn(true);\n when(element.clickable()).thenReturn(true);\n assertThatAssertionErrorIsThrownBy(() -> elementAssert.isNotClickable())\n .hasMessage(\"Element in assertion is present but clicka...
{ "fields": [], "file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/FluentWebElementAssert.java", "identifier": "FluentWebElementAssert", "interfaces": "implements ElementStateAssert, ElementAttributeAssert", "methods": [ { "class_method_signature": "FluentWebElementAssert.Fl...
{ "body": "@Override\n public FluentWebElementAssert isNotClickable() {\n isPresentAndIs(() -> actual.clickable(), \"Element in assertion is present but clickable\");\n return this;\n }", "class_method_signature": "FluentWebElementAssert.isNotClickable()", "constructor": false, "full_signatu...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_646
{ "fields": [ { "declarator": "driver", "modifier": "@Mock\n private", "original_string": "@Mock\n private WebDriver driver;", "type": "WebDriver", "var_name": "driver" }, { "declarator": "searchContext", "modifier": "@Mock\n private", "original_str...
{ "body": "@Test\n public void findFirstShouldReturnFirst() {\n String name = \"cssStyle\";\n WebElement webElement1 = mock(WebElement.class);\n when(webElement1.getTagName()).thenReturn(\"span\");\n WebElement webElement2 = mock(WebElement.class);\n\n List<WebElement> webElement...
{ "fields": [ { "declarator": "searchContext", "modifier": "private final", "original_string": "private final SearchContext searchContext;", "type": "SearchContext", "var_name": "searchContext" }, { "declarator": "container", "modifier": "private final", "or...
{ "body": "@Override\n public FluentWebElement el(WebElement rawElement) {\n return find(singletonList(rawElement)).first();\n }", "class_method_signature": "Search.el(WebElement rawElement)", "constructor": false, "full_signature": "@Override public FluentWebElement el(WebElement rawElement)", "...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_216
{ "fields": [ { "declarator": "configuration", "modifier": "private", "original_string": "private ProgrammaticConfiguration configuration;", "type": "ProgrammaticConfiguration", "var_name": "configuration" }, { "declarator": "configurationProperties1", "modifier":...
{ "body": "@Test\n public void htmlDumpMode() {\n testImpl(ConfigurationProperties::getHtmlDumpMode, input -> {\n composed.setHtmlDumpMode(input);\n return null;\n }, null, ConfigurationProperties.TriggerMode.MANUAL, ConfigurationProperties.TriggerMode.AUTOMATIC_ON_FAIL);\n }...
{ "fields": [ { "declarator": "configurations", "modifier": "private final", "original_string": "private final ConfigurationProperties[] configurations;", "type": "ConfigurationProperties[]", "var_name": "configurations" }, { "declarator": "writableConfiguration", ...
{ "body": "@Override\n public void setHtmlDumpMode(TriggerMode htmlDumpMode) {\n getWritableConfiguration().setHtmlDumpMode(htmlDumpMode);\n }", "class_method_signature": "ComposedConfiguration.setHtmlDumpMode(TriggerMode htmlDumpMode)", "constructor": false, "full_signature": "@Override public voi...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_580
{ "fields": [ { "declarator": "element1", "modifier": "@Mock\n private", "original_string": "@Mock\n private FluentWebElement element1;", "type": "FluentWebElement", "var_name": "element1" }, { "declarator": "element2", "modifier": "@Mock\n private", ...
{ "body": "@Test\n public void shouldThrowNoSuchElementExceptionForWaitAndClickSecondsWhenListIsEmpty() {\n assertThatThrownBy(() -> emptyList.waitAndClick(Duration.ofSeconds(4))).isInstanceOf(NoSuchElementException.class);\n }", "class_method_signature": "FluentListImplTest.shouldThrowNoSuchElementExc...
{ "fields": [ { "declarator": "DEFAULT_WAIT_AND_CLICK_DURATION = Duration.ofSeconds(5)", "modifier": "private static final", "original_string": "private static final Duration DEFAULT_WAIT_AND_CLICK_DURATION = Duration.ofSeconds(5);", "type": "Duration", "var_name": "DEFAULT_WAIT_AND_...
{ "body": "@Override\n public FluentList<E> waitAndClick() {\n return waitAndClick(DEFAULT_WAIT_AND_CLICK_DURATION);\n }", "class_method_signature": "FluentListImpl.waitAndClick()", "constructor": false, "full_signature": "@Override public FluentList<E> waitAndClick()", "identifier": "waitAndClic...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_345
{ "fields": [ { "declarator": "locatorHandler", "modifier": "private", "original_string": "private TestLocatorHandler locatorHandler;", "type": "TestLocatorHandler", "var_name": "locatorHandler" }, { "declarator": "locator", "modifier": "@Mock\n private", ...
{ "body": "@Test\n public void shouldReturnCustomToStringIfElementToStringWithElementToString() {\n assertThat(locatorHandler.proxyToString(\"some to string\")).isEqualTo(\"locator (some to string)\");\n }", "class_method_signature": "AbstractLocatorHandlerTest.shouldReturnCustomToStringIfElementToStri...
{ "fields": [ { "declarator": "DEFAULT_LAZY_ELEMENT_TO_STRING = \"Lazy Element\"", "modifier": "private static final", "original_string": "private static final String DEFAULT_LAZY_ELEMENT_TO_STRING = \"Lazy Element\";", "type": "String", "var_name": "DEFAULT_LAZY_ELEMENT_TO_STRING" ...
{ "body": "public String proxyToString(String elementToString) {\n if (elementToString == null) {\n elementToString = getLazyToString();\n }\n\n return locator instanceof WrapsElement ? elementToString : locator + \" (\" + elementToString + \")\";\n }", "class_method_signature": "...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_200
{ "fields": [ { "declarator": "configuration", "modifier": "private static", "original_string": "private static AnnotationConfiguration configuration;", "type": "AnnotationConfiguration", "var_name": "configuration" }, { "declarator": "defaultConfiguration", "modi...
{ "body": "@Test\n public void screenshotMode() {\n Assertions.assertThat(noConfiguration.getScreenshotMode()).isNull();\n Assertions.assertThat(defaultConfiguration.getScreenshotMode()).isNull();\n\n Assertions.assertThat(configuration.getScreenshotMode()).isEqualTo(ConfigurationProperties.Tr...
{ "fields": [ { "declarator": "configuration", "modifier": "private final", "original_string": "private final FluentConfiguration configuration;", "type": "FluentConfiguration", "var_name": "configuration" }, { "declarator": "customProperties = new HashMap<>()", "...
{ "body": "@Override\n public TriggerMode getScreenshotMode() {\n return getConfig(() -> getTriggerModeValue(configuration.screenshotMode()));\n }", "class_method_signature": "AnnotationConfiguration.getScreenshotMode()", "constructor": false, "full_signature": "@Override public TriggerMode getScre...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_650
{ "fields": [ { "declarator": "webDriver", "modifier": "@Mock\n private", "original_string": "@Mock\n private WebDriver webDriver;", "type": "WebDriver", "var_name": "webDriver" }, { "declarator": "configuration", "modifier": "@Mock\n private", "ori...
{ "body": "@Test\n public void shouldReturnCurrentUrlFromDriverUrlIfNoBaseUrlIsPresent() {\n fluentDriver = spy(new FluentDriver(webDriver, configuration, adapter));\n when(webDriver.getCurrentUrl()).thenReturn(\"https://duckduckgo.com/?q=fluentlenium&ia=web\");\n when(configuration.getBaseUrl...
{ "fields": [ { "declarator": "LOGGER =\n LoggerFactory.getLogger(FluentDriver.class)", "modifier": "private static final", "original_string": "private static final Logger LOGGER =\n LoggerFactory.getLogger(FluentDriver.class);", "type": "Logger", "var_name": "L...
{ "body": "@Override\n public String url() {\n String baseUrl = buildUrl(null);\n\n String currentUrl = getDriver().getCurrentUrl();\n if (currentUrl != null && baseUrl != null && currentUrl.startsWith(baseUrl)) {\n currentUrl = currentUrl.substring(baseUrl.length());\n }\n\n...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_579
{ "fields": [ { "declarator": "element1", "modifier": "@Mock\n private", "original_string": "@Mock\n private FluentWebElement element1;", "type": "FluentWebElement", "var_name": "element1" }, { "declarator": "element2", "modifier": "@Mock\n private", ...
{ "body": "@Test\n public void shouldThrowNoSuchElementExceptionForWaitAndClickWhenListIsEmpty() {\n assertThatThrownBy(() -> emptyList.waitAndClick()).isInstanceOf(NoSuchElementException.class);\n }", "class_method_signature": "FluentListImplTest.shouldThrowNoSuchElementExceptionForWaitAndClickWhenLis...
{ "fields": [ { "declarator": "DEFAULT_WAIT_AND_CLICK_DURATION = Duration.ofSeconds(5)", "modifier": "private static final", "original_string": "private static final Duration DEFAULT_WAIT_AND_CLICK_DURATION = Duration.ofSeconds(5);", "type": "Duration", "var_name": "DEFAULT_WAIT_AND_...
{ "body": "@Override\n public FluentList<E> waitAndClick() {\n return waitAndClick(DEFAULT_WAIT_AND_CLICK_DURATION);\n }", "class_method_signature": "FluentListImpl.waitAndClick()", "constructor": false, "full_signature": "@Override public FluentList<E> waitAndClick()", "identifier": "waitAndClic...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_129
{ "fields": [ { "declarator": "fluentList", "modifier": "@Mock\n private", "original_string": "@Mock\n private FluentList<FluentWebElement> fluentList;", "type": "FluentList<FluentWebElement>", "var_name": "fluentList" }, { "declarator": "listAssert", "modif...
{ "body": "@Test\n public void shouldNotHaveClassesWhenNoElementHasClass() {\n when(fluentList.attributes(\"class\")).thenReturn(Lists.newArrayList(null, null));\n listAssert.hasNotClasses(\"class2\", \"class4\");\n }", "class_method_signature": "FluentListAssertTest.shouldNotHaveClassesWhenNoEl...
{ "fields": [], "file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/FluentListAssert.java", "identifier": "FluentListAssert", "interfaces": "implements ListStateAssert, ListAttributeAssert", "methods": [ { "class_method_signature": "FluentListAssert.FluentListAssert(FluentLis...
{ "body": "@Override\n public FluentListAssert hasNotClasses(String... htmlClasses) {\n notHasClasses(\"At least one selected element has classes: \", htmlClasses);\n return this;\n }", "class_method_signature": "FluentListAssert.hasNotClasses(String... htmlClasses)", "constructor": false, "...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_596
{ "fields": [ { "declarator": "element", "modifier": "@Mock\n private", "original_string": "@Mock\n private LocatableElement element;", "type": "LocatableElement", "var_name": "element" }, { "declarator": "driver", "modifier": "@Mock\n private", "or...
{ "body": "@Test\n public void testDoubleClick() {\n fluentElement.doubleClick();\n verify(mouse).doubleClick(any());\n }", "class_method_signature": "FluentWebElementTest.testDoubleClick()", "constructor": false, "full_signature": "@Test public void testDoubleClick()", "identifier": "test...
{ "fields": [ { "declarator": "search", "modifier": "private final", "original_string": "private final Search search;", "type": "Search", "var_name": "search" }, { "declarator": "dom", "modifier": "private final", "original_string": "private final Dom dom;",...
{ "body": "@Override\n public FluentWebElement doubleClick() {\n mouse().doubleClick();\n return this;\n }", "class_method_signature": "FluentWebElement.doubleClick()", "constructor": false, "full_signature": "@Override public FluentWebElement doubleClick()", "identifier": "doubleClick", ...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_312
{ "fields": [ { "declarator": "fluentControl", "modifier": "@Mock\n private", "original_string": "@Mock\n private FluentControl fluentControl;", "type": "FluentControl", "var_name": "fluentControl" }, { "declarator": "element", "modifier": "@Mock\n privat...
{ "body": "@Test\n public void testElementSendKeys() {\n WebElement childElement = mock(WebElement.class);\n\n waitHook.sendKeys(\"abc\");\n verify(element).sendKeys(\"abc\");\n }", "class_method_signature": "WaitHookTest.testElementSendKeys()", "constructor": false, "full_signature":...
{ "fields": [], "file": "fluentlenium-core/src/main/java/org/fluentlenium/core/hook/wait/WaitHook.java", "identifier": "WaitHook", "interfaces": "", "methods": [ { "class_method_signature": "WaitHook.WaitHook(FluentControl control, ComponentInstantiator instantiator, Supplier<WebElement> elementSupp...
{ "body": "@Override\n public void sendKeys(CharSequence... keysToSend) {\n buildAwait().until(() -> getFluentWebElement().present() && getFluentWebElement().enabled());\n super.sendKeys(keysToSend);\n }", "class_method_signature": "WaitHook.sendKeys(CharSequence... keysToSend)", "constructor"...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_51
{ "fields": [ { "declarator": "element", "modifier": "@Mock\n private", "original_string": "@Mock\n private FluentWebElement element;", "type": "FluentWebElement", "var_name": "element" }, { "declarator": "elementAssert", "modifier": "private", "origin...
{ "body": "@Test\n public void testHasClassSubstringKo() {\n when(element.attribute(\"class\")).thenReturn(\"yolokitten\");\n assertThatAssertionErrorIsThrownBy(() -> elementAssert.hasClass(\"yolo\"))\n .hasMessage(\"The element does not have the class: yolo. Actual class found : yolok...
{ "fields": [], "file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/FluentWebElementAssert.java", "identifier": "FluentWebElementAssert", "interfaces": "implements ElementStateAssert, ElementAttributeAssert", "methods": [ { "class_method_signature": "FluentWebElementAssert.Fl...
{ "body": "@Override\n public FluentWebElementAssert hasClass(String classToFind) {\n String actualClasses = actual.attribute(CLASS_ATTRIBUTE);\n if (!getClasses(actualClasses).contains(classToFind)) {\n failWithMessage(\"The element does not have the class: \" + classToFind\n ...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_607
{ "fields": [ { "declarator": "element", "modifier": "@Mock\n private", "original_string": "@Mock\n private LocatableElement element;", "type": "LocatableElement", "var_name": "element" }, { "declarator": "driver", "modifier": "@Mock\n private", "or...
{ "body": "@Test\n public void testText() {\n fluentElement.write(\"abc\");\n verify(element).clear();\n verify(element).sendKeys(\"abc\");\n }", "class_method_signature": "FluentWebElementTest.testText()", "constructor": false, "full_signature": "@Test public void testText()", "ide...
{ "fields": [ { "declarator": "search", "modifier": "private final", "original_string": "private final Search search;", "type": "Search", "var_name": "search" }, { "declarator": "dom", "modifier": "private final", "original_string": "private final Dom dom;",...
{ "body": "public String text() {\n return webElement.getText();\n }", "class_method_signature": "FluentWebElement.text()", "constructor": false, "full_signature": "public String text()", "identifier": "text", "invocations": [ "getText" ], "modifiers": "public", "parameters": "()", "re...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_257
{ "fields": [ { "declarator": "by", "modifier": "@Mock\n private", "original_string": "@Mock\n private By by;", "type": "By", "var_name": "by" }, { "declarator": "elementLocator", "modifier": "@Mock\n private", "original_string": "@Mock\n private...
{ "body": "@Test\n public void shouldFindElement() {\n locatorSearchContext = new ElementLocatorSearchContext(elementLocator);\n when(elementLocator.findElement()).thenReturn(element1);\n when(element1.findElement(by)).thenReturn(element2);\n\n assertThat(locatorSearchContext.findElemen...
{ "fields": [ { "declarator": "locator", "modifier": "private final", "original_string": "private final ElementLocator locator;", "type": "ElementLocator", "var_name": "locator" } ], "file": "fluentlenium-core/src/main/java/org/fluentlenium/core/inject/ElementLocatorSearchCon...
{ "body": "@Override\n public WebElement findElement(By by) {\n return locator.findElement().findElement(by);\n }", "class_method_signature": "ElementLocatorSearchContext.findElement(By by)", "constructor": false, "full_signature": "@Override public WebElement findElement(By by)", "identifier": "...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_484
{ "fields": [ { "declarator": "fluentControlWait", "modifier": "@Mock\n private", "original_string": "@Mock\n private FluentWait fluentControlWait;", "type": "FluentWait", "var_name": "fluentControlWait" }, { "declarator": "fluentList", "modifier": "@Mock\n ...
{ "body": "@Test\n public void explicitlyForMillis() {\n long amount = 10;\n\n wait.explicitlyFor(amount);\n Mockito.verify(fluentControlWait).explicitlyFor(amount, TimeUnit.MILLISECONDS);\n }", "class_method_signature": "FluentWaitElementListTest.explicitlyForMillis()", "constructor": ...
{ "fields": [ { "declarator": "elements", "modifier": "private final", "original_string": "private final List<? extends FluentWebElement> elements;", "type": "List<? extends FluentWebElement>", "var_name": "elements" }, { "declarator": "controlWait", "modifier": "...
{ "body": "@Override\n public FluentWaitElementList explicitlyFor(long amount, TimeUnit timeUnit) {\n controlWait.explicitlyFor(amount, timeUnit);\n return this;\n }", "class_method_signature": "FluentWaitElementList.explicitlyFor(long amount, TimeUnit timeUnit)", "constructor": false, "full...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_191
{ "fields": [ { "declarator": "configuration", "modifier": "private static", "original_string": "private static AnnotationConfiguration configuration;", "type": "AnnotationConfiguration", "var_name": "configuration" }, { "declarator": "defaultConfiguration", "modi...
{ "body": "@Test\n public void baseUrl() {\n Assertions.assertThat(noConfiguration.getBaseUrl()).isNull();\n Assertions.assertThat(defaultConfiguration.getBaseUrl()).isNull();\n\n Assertions.assertThat(configuration.getBaseUrl()).isEqualTo(\"http://localhost:3000\");\n }", "class_method_s...
{ "fields": [ { "declarator": "configuration", "modifier": "private final", "original_string": "private final FluentConfiguration configuration;", "type": "FluentConfiguration", "var_name": "configuration" }, { "declarator": "customProperties = new HashMap<>()", "...
{ "body": "@Override\n public String getBaseUrl() {\n return getConfig(() -> getStringValue(configuration.baseUrl()));\n }", "class_method_signature": "AnnotationConfiguration.getBaseUrl()", "constructor": false, "full_signature": "@Override public String getBaseUrl()", "identifier": "getBaseUrl"...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_485
{ "fields": [ { "declarator": "fluentControlWait", "modifier": "@Mock\n private", "original_string": "@Mock\n private FluentWait fluentControlWait;", "type": "FluentWait", "var_name": "fluentControlWait" }, { "declarator": "fluentList", "modifier": "@Mock\n ...
{ "body": "@Test\n public void untilBooleanSupplier() {\n Supplier<Boolean> isTrue = mock(Supplier.class);\n\n wait.until(isTrue);\n Mockito.verify(fluentControlWait).until(isTrue);\n }", "class_method_signature": "FluentWaitElementListTest.untilBooleanSupplier()", "constructor": false,...
{ "fields": [ { "declarator": "elements", "modifier": "private final", "original_string": "private final List<? extends FluentWebElement> elements;", "type": "List<? extends FluentWebElement>", "var_name": "elements" }, { "declarator": "controlWait", "modifier": "...
{ "body": "public FluentConditions until() {\n return controlWait.until(elements);\n }", "class_method_signature": "FluentWaitElementList.until()", "constructor": false, "full_signature": "public FluentConditions until()", "identifier": "until", "invocations": [ "until" ], "modifiers": "pu...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_190
{ "fields": [ { "declarator": "configuration", "modifier": "private static", "original_string": "private static AnnotationConfiguration configuration;", "type": "AnnotationConfiguration", "var_name": "configuration" }, { "declarator": "defaultConfiguration", "modi...
{ "body": "@Test\n public void deleteCookies() {\n Assertions.assertThat(noConfiguration.getDeleteCookies()).isNull();\n Assertions.assertThat(defaultConfiguration.getDeleteCookies()).isNull();\n\n Assertions.assertThat(configuration.getDeleteCookies()).isTrue();\n }", "class_method_signa...
{ "fields": [ { "declarator": "configuration", "modifier": "private final", "original_string": "private final FluentConfiguration configuration;", "type": "FluentConfiguration", "var_name": "configuration" }, { "declarator": "customProperties = new HashMap<>()", "...
{ "body": "@Override\n public Boolean getDeleteCookies() {\n return getConfig(() -> configuration.deleteCookies().asBoolean());\n }", "class_method_signature": "AnnotationConfiguration.getDeleteCookies()", "constructor": false, "full_signature": "@Override public Boolean getDeleteCookies()", "ide...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_313
{ "fields": [ { "declarator": "fluentControl", "modifier": "@Mock\n private", "original_string": "@Mock\n private FluentControl fluentControl;", "type": "FluentControl", "var_name": "fluentControl" }, { "declarator": "element", "modifier": "@Mock\n privat...
{ "body": "@Test\n public void testElementSubmit() {\n WebElement childElement = mock(WebElement.class);\n\n waitHook.submit();\n verify(element).submit();\n }", "class_method_signature": "WaitHookTest.testElementSubmit()", "constructor": false, "full_signature": "@Test public void te...
{ "fields": [], "file": "fluentlenium-core/src/main/java/org/fluentlenium/core/hook/wait/WaitHook.java", "identifier": "WaitHook", "interfaces": "", "methods": [ { "class_method_signature": "WaitHook.WaitHook(FluentControl control, ComponentInstantiator instantiator, Supplier<WebElement> elementSupp...
{ "body": "@Override\n public void submit() {\n buildAwait().until(() -> getFluentWebElement().displayed() && getFluentWebElement().enabled());\n super.submit();\n }", "class_method_signature": "WaitHook.submit()", "constructor": false, "full_signature": "@Override public void submit()", "...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_50
{ "fields": [ { "declarator": "element", "modifier": "@Mock\n private", "original_string": "@Mock\n private FluentWebElement element;", "type": "FluentWebElement", "var_name": "element" }, { "declarator": "elementAssert", "modifier": "private", "origin...
{ "body": "@Test\n public void shouldFailWhenContainsClasses() {\n when(element.attribute(\"class\")).thenReturn(\"clazz clazz2 clazz3\");\n assertThatAssertionErrorIsThrownBy(() -> elementAssert.hasNotClasses(\"clazz2\", \"clazz3\"))\n .hasMessage(\"The element has the classes: [clazz...
{ "fields": [], "file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/FluentWebElementAssert.java", "identifier": "FluentWebElementAssert", "interfaces": "implements ElementStateAssert, ElementAttributeAssert", "methods": [ { "class_method_signature": "FluentWebElementAssert.Fl...
{ "body": "@Override\n public FluentWebElementAssert hasNotClasses(String... classesToFind) {\n String actualClasses = actual.attribute(CLASS_ATTRIBUTE);\n if (actualClasses != null) {\n List<String> actualClassesAsList = getClasses(actualClasses);\n if (actualClassesAsList.cont...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_606
{ "fields": [ { "declarator": "element", "modifier": "@Mock\n private", "original_string": "@Mock\n private LocatableElement element;", "type": "LocatableElement", "var_name": "element" }, { "declarator": "driver", "modifier": "@Mock\n private", "or...
{ "body": "@Test\n public void testSubmit() {\n fluentElement.submit();\n verify(element).submit();\n }", "class_method_signature": "FluentWebElementTest.testSubmit()", "constructor": false, "full_signature": "@Test public void testSubmit()", "identifier": "testSubmit", "invocations": [ ...
{ "fields": [ { "declarator": "search", "modifier": "private final", "original_string": "private final Search search;", "type": "Search", "var_name": "search" }, { "declarator": "dom", "modifier": "private final", "original_string": "private final Dom dom;",...
{ "body": "public FluentWebElement submit() {\n webElement.submit();\n return this;\n }", "class_method_signature": "FluentWebElement.submit()", "constructor": false, "full_signature": "public FluentWebElement submit()", "identifier": "submit", "invocations": [ "submit" ], "modifier...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_256
{ "fields": [ { "declarator": "by", "modifier": "@Mock\n private", "original_string": "@Mock\n private By by;", "type": "By", "var_name": "by" }, { "declarator": "elementLocator", "modifier": "@Mock\n private", "original_string": "@Mock\n private...
{ "body": "@Test\n public void shouldFindElements() {\n locatorSearchContext = new ElementLocatorSearchContext(elementLocator);\n when(elementLocator.findElements()).thenReturn(ImmutableList.of(element1, element2));\n when(element1.findElements(by)).thenReturn(ImmutableList.of(webElement1, web...
{ "fields": [ { "declarator": "locator", "modifier": "private final", "original_string": "private final ElementLocator locator;", "type": "ElementLocator", "var_name": "locator" } ], "file": "fluentlenium-core/src/main/java/org/fluentlenium/core/inject/ElementLocatorSearchCon...
{ "body": "@Override\n public List<WebElement> findElements(By by) {\n List<WebElement> elements = new ArrayList<>();\n\n List<WebElement> baseElements = locator.findElements();\n\n for (WebElement element : baseElements) {\n elements.addAll(element.findElements(by));\n }\n\n...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_578
{ "fields": [ { "declarator": "element1", "modifier": "@Mock\n private", "original_string": "@Mock\n private FluentWebElement element1;", "type": "FluentWebElement", "var_name": "element1" }, { "declarator": "element2", "modifier": "@Mock\n private", ...
{ "body": "@Test\n public void shouldReturnFalseForPresentIfListSizeNotGreaterThanZeroWhenNoLocatorHandlerIsAvailableForProxy() {\n assertThat(emptyList.present()).isFalse();\n }", "class_method_signature": "FluentListImplTest.shouldReturnFalseForPresentIfListSizeNotGreaterThanZeroWhenNoLocatorHandlerI...
{ "fields": [ { "declarator": "DEFAULT_WAIT_AND_CLICK_DURATION = Duration.ofSeconds(5)", "modifier": "private static final", "original_string": "private static final Duration DEFAULT_WAIT_AND_CLICK_DURATION = Duration.ofSeconds(5);", "type": "Duration", "var_name": "DEFAULT_WAIT_AND_...
{ "body": "@Override\n public boolean present() {\n if (LocatorProxies.getLocatorHandler(proxy) != null) {\n return LocatorProxies.present(this);\n }\n return size() > 0;\n }", "class_method_signature": "FluentListImpl.present()", "constructor": false, "full_signature": "@O...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_128
{ "fields": [ { "declarator": "fluentList", "modifier": "@Mock\n private", "original_string": "@Mock\n private FluentList<FluentWebElement> fluentList;", "type": "FluentList<FluentWebElement>", "var_name": "fluentList" }, { "declarator": "listAssert", "modif...
{ "body": "@Test\n public void shouldNotHaveClasses() {\n when(fluentList.attributes(\"class\")).thenReturn(Lists.newArrayList(\"class1 class2\", \"class1 class2 class3\", \"class4\"));\n listAssert.hasNotClasses(\"class2\", \"class4\");\n }", "class_method_signature": "FluentListAssertTest.shou...
{ "fields": [], "file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/FluentListAssert.java", "identifier": "FluentListAssert", "interfaces": "implements ListStateAssert, ListAttributeAssert", "methods": [ { "class_method_signature": "FluentListAssert.FluentListAssert(FluentLis...
{ "body": "@Override\n public FluentListAssert hasNotClasses(String... htmlClasses) {\n notHasClasses(\"At least one selected element has classes: \", htmlClasses);\n return this;\n }", "class_method_signature": "FluentListAssert.hasNotClasses(String... htmlClasses)", "constructor": false, "...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_597
{ "fields": [ { "declarator": "element", "modifier": "@Mock\n private", "original_string": "@Mock\n private LocatableElement element;", "type": "LocatableElement", "var_name": "element" }, { "declarator": "driver", "modifier": "@Mock\n private", "or...
{ "body": "@Test\n public void testContextClick() {\n fluentElement.contextClick();\n verify(mouse).contextClick(any());\n }", "class_method_signature": "FluentWebElementTest.testContextClick()", "constructor": false, "full_signature": "@Test public void testContextClick()", "identifier": ...
{ "fields": [ { "declarator": "search", "modifier": "private final", "original_string": "private final Search search;", "type": "Search", "var_name": "search" }, { "declarator": "dom", "modifier": "private final", "original_string": "private final Dom dom;",...
{ "body": "@Override\n public FluentWebElement contextClick() {\n mouse().contextClick();\n return this;\n }", "class_method_signature": "FluentWebElement.contextClick()", "constructor": false, "full_signature": "@Override public FluentWebElement contextClick()", "identifier": "contextClic...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_344
{ "fields": [ { "declarator": "locatorHandler", "modifier": "private", "original_string": "private TestLocatorHandler locatorHandler;", "type": "TestLocatorHandler", "var_name": "locatorHandler" }, { "declarator": "locator", "modifier": "@Mock\n private", ...
{ "body": "@Test\n public void shouldReturnLocatorSpecificDefaultToStringWithElementToString() {\n ElementLocator elementLocator = mock(ElementLocator.class, withSettings().extraInterfaces(WrapsElement.class));\n TestLocatorHandler handler = new TestLocatorHandler(elementLocator);\n\n assertTh...
{ "fields": [ { "declarator": "DEFAULT_LAZY_ELEMENT_TO_STRING = \"Lazy Element\"", "modifier": "private static final", "original_string": "private static final String DEFAULT_LAZY_ELEMENT_TO_STRING = \"Lazy Element\";", "type": "String", "var_name": "DEFAULT_LAZY_ELEMENT_TO_STRING" ...
{ "body": "public String proxyToString(String elementToString) {\n if (elementToString == null) {\n elementToString = getLazyToString();\n }\n\n return locator instanceof WrapsElement ? elementToString : locator + \" (\" + elementToString + \")\";\n }", "class_method_signature": "...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_201
{ "fields": [ { "declarator": "configuration", "modifier": "private static", "original_string": "private static AnnotationConfiguration configuration;", "type": "AnnotationConfiguration", "var_name": "configuration" }, { "declarator": "defaultConfiguration", "modi...
{ "body": "@Test\n public void htmlDumpMode() {\n Assertions.assertThat(noConfiguration.getHtmlDumpMode()).isNull();\n Assertions.assertThat(defaultConfiguration.getHtmlDumpMode()).isNull();\n\n Assertions.assertThat(configuration.getHtmlDumpMode()).isEqualTo(ConfigurationProperties.TriggerMod...
{ "fields": [ { "declarator": "configuration", "modifier": "private final", "original_string": "private final FluentConfiguration configuration;", "type": "FluentConfiguration", "var_name": "configuration" }, { "declarator": "customProperties = new HashMap<>()", "...
{ "body": "@Override\n public TriggerMode getHtmlDumpMode() {\n return getConfig(() -> getTriggerModeValue(configuration.htmlDumpMode()));\n }", "class_method_signature": "AnnotationConfiguration.getHtmlDumpMode()", "constructor": false, "full_signature": "@Override public TriggerMode getHtmlDumpMo...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_651
{ "fields": [ { "declarator": "webDriver", "modifier": "@Mock\n private", "original_string": "@Mock\n private WebDriver webDriver;", "type": "WebDriver", "var_name": "webDriver" }, { "declarator": "configuration", "modifier": "@Mock\n private", "ori...
{ "body": "@Test\n public void shouldReturnCurrentUrlFromDriverIfCurrentUrlDoesntStartWithBaseUrl() {\n fluentDriver = spy(new FluentDriver(webDriver, configuration, adapter));\n when(webDriver.getCurrentUrl()).thenReturn(\"https://duckduckgo.com/?q=fluentlenium&ia=web\");\n when(configuration...
{ "fields": [ { "declarator": "LOGGER =\n LoggerFactory.getLogger(FluentDriver.class)", "modifier": "private static final", "original_string": "private static final Logger LOGGER =\n LoggerFactory.getLogger(FluentDriver.class);", "type": "Logger", "var_name": "L...
{ "body": "@Override\n public String url() {\n String baseUrl = buildUrl(null);\n\n String currentUrl = getDriver().getCurrentUrl();\n if (currentUrl != null && baseUrl != null && currentUrl.startsWith(baseUrl)) {\n currentUrl = currentUrl.substring(baseUrl.length());\n }\n\n...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_581
{ "fields": [ { "declarator": "element1", "modifier": "@Mock\n private", "original_string": "@Mock\n private FluentWebElement element1;", "type": "FluentWebElement", "var_name": "element1" }, { "declarator": "element2", "modifier": "@Mock\n private", ...
{ "body": "@Test\n public void testEach() {\n when(element1.enabled()).thenReturn(true);\n when(element2.enabled()).thenReturn(true);\n when(element3.enabled()).thenReturn(true);\n\n assertThat(list.each().enabled()).isTrue();\n\n verify(element1).enabled();\n verify(eleme...
{ "fields": [ { "declarator": "DEFAULT_WAIT_AND_CLICK_DURATION = Duration.ofSeconds(5)", "modifier": "private static final", "original_string": "private static final Duration DEFAULT_WAIT_AND_CLICK_DURATION = Duration.ofSeconds(5);", "type": "Duration", "var_name": "DEFAULT_WAIT_AND_...
{ "body": "@Override\n public FluentListConditions each() {\n return new EachElementConditions(this);\n }", "class_method_signature": "FluentListImpl.each()", "constructor": false, "full_signature": "@Override public FluentListConditions each()", "identifier": "each", "invocations": [], "modi...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_352
{ "fields": [], "file": "fluentlenium-core/src/test/java/org/fluentlenium/core/conditions/StringConditionsImplTest.java", "identifier": "StringConditionsImplTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldReturnFalseIsNotStartsWithString() {\n StringConditions stringConditions = new StringConditionsImpl(\"Some magical text.\");\n\n assertThat(stringConditions.startsWith(\"magical\")).isFalse();\n }", "class_method_signature": "StringConditionsImplTest.shouldRe...
{ "fields": [], "file": "fluentlenium-core/src/main/java/org/fluentlenium/core/conditions/StringConditionsImpl.java", "identifier": "StringConditionsImpl", "interfaces": "implements StringConditions", "methods": [ { "class_method_signature": "StringConditionsImpl.StringConditionsImpl(String string)"...
{ "body": "@Override\n public boolean startsWith(String prefix) {\n return verify(input -> {\n if (input == null) {\n return false;\n }\n return input.startsWith(prefix);\n });\n }", "class_method_signature": "StringConditionsImpl.startsWith(String...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_11
{ "fields": [ { "declarator": "element", "modifier": "@Mock\n private", "original_string": "@Mock\n private FluentWebElement element;", "type": "FluentWebElement", "var_name": "element" }, { "declarator": "elementAssert", "modifier": "private", "origin...
{ "body": "@Test\n public void testIsPresentOk() {\n when(element.present()).thenReturn(true);\n elementAssert.isPresent();\n }", "class_method_signature": "FluentWebElementAssertTest.testIsPresentOk()", "constructor": false, "full_signature": "@Test public void testIsPresentOk()", "identi...
{ "fields": [], "file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/FluentWebElementAssert.java", "identifier": "FluentWebElementAssert", "interfaces": "implements ElementStateAssert, ElementAttributeAssert", "methods": [ { "class_method_signature": "FluentWebElementAssert.Fl...
{ "body": "@Override\n public FluentWebElementAssert isPresent() {\n if (!actual.present()) {\n failWithMessage(\"Element in assertion is not present\");\n }\n return this;\n }", "class_method_signature": "FluentWebElementAssert.isPresent()", "constructor": false, "full_sig...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_647
{ "fields": [ { "declarator": "driver", "modifier": "@Mock\n private", "original_string": "@Mock\n private WebDriver driver;", "type": "WebDriver", "var_name": "driver" }, { "declarator": "searchContext", "modifier": "@Mock\n private", "original_str...
{ "body": "@Test(expected = NoSuchElementException.class)\n public void shouldThrowErrorWhenFirstNotFound() {\n String name = \"cssStyle\";\n FluentWebElement fluentWebElement = search.el(name);\n assertThat(fluentWebElement.tagName()).isEqualTo(\"span\");\n }", "class_method_signature": ...
{ "fields": [ { "declarator": "searchContext", "modifier": "private final", "original_string": "private final SearchContext searchContext;", "type": "SearchContext", "var_name": "searchContext" }, { "declarator": "container", "modifier": "private final", "or...
{ "body": "@Override\n public FluentWebElement el(WebElement rawElement) {\n return find(singletonList(rawElement)).first();\n }", "class_method_signature": "Search.el(WebElement rawElement)", "constructor": false, "full_signature": "@Override public FluentWebElement el(WebElement rawElement)", "...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_217
{ "fields": [ { "declarator": "configuration", "modifier": "private", "original_string": "private ProgrammaticConfiguration configuration;", "type": "ProgrammaticConfiguration", "var_name": "configuration" }, { "declarator": "configurationProperties1", "modifier":...
{ "body": "@Test\n public void capabilities() {\n DesiredCapabilities cap1 = new DesiredCapabilities();\n cap1.setJavascriptEnabled(true);\n\n DesiredCapabilities cap2 = new DesiredCapabilities();\n cap2.setJavascriptEnabled(false);\n\n testImpl(ConfigurationProperties::getCapabi...
{ "fields": [ { "declarator": "configurations", "modifier": "private final", "original_string": "private final ConfigurationProperties[] configurations;", "type": "ConfigurationProperties[]", "var_name": "configurations" }, { "declarator": "writableConfiguration", ...
{ "body": "@Override\n public void setCapabilities(Capabilities capabilities) {\n getWritableConfiguration().setCapabilities(capabilities);\n }", "class_method_signature": "ComposedConfiguration.setCapabilities(Capabilities capabilities)", "constructor": false, "full_signature": "@Override public v...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_539
{ "fields": [ { "declarator": "keyboard", "modifier": "@Mock\n private", "original_string": "@Mock\n private Keyboard keyboard;", "type": "Keyboard", "var_name": "keyboard" }, { "declarator": "mouse", "modifier": "@Mock\n private", "original_string"...
{ "body": "@Test\n public void dragAndDropBy() {\n MouseElementActions actions = new MouseElementActions(driver, element);\n actions.dragAndDropBy(10, 20);\n\n verify(mouse).mouseMove(coordinates);\n verify(mouse).mouseDown(coordinates);\n verify(mouse).mouseMove(null, 10, 20);\n...
{ "fields": [ { "declarator": "driver", "modifier": "private final", "original_string": "private final WebDriver driver;", "type": "WebDriver", "var_name": "driver" }, { "declarator": "element", "modifier": "private final", "original_string": "private final ...
{ "body": "public MouseElementActions dragAndDropBy(int xOffset, int yOffset) {\n loadElementAndPerform(actions().dragAndDropBy(element, xOffset, yOffset));\n return this;\n }", "class_method_signature": "MouseElementActions.dragAndDropBy(int xOffset, int yOffset)", "constructor": false, "full_...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_169
{ "fields": [ { "declarator": "DRIVER_LIFECYCLE = \"driverLifecycle\"", "modifier": "private static final", "original_string": "private static final String DRIVER_LIFECYCLE = \"driverLifecycle\";", "type": "String", "var_name": "DRIVER_LIFECYCLE" }, { "declarator": "ret...
{ "body": "@Test\n public void driverLifecycleMethod() {\n assertThat(getConfiguration().getDriverLifecycle()).isNull();\n\n mockProperty(DRIVER_LIFECYCLE, \"mEthOd\");\n assertThat(getConfiguration().getDriverLifecycle()).isEqualTo(ConfigurationProperties.DriverLifecycle.METHOD);\n }", "...
{ "fields": [ { "declarator": "PROPERTIES_PREFIX = \"fluentlenium.\"", "modifier": "static final", "original_string": "static final String PROPERTIES_PREFIX = \"fluentlenium.\";", "type": "String", "var_name": "PROPERTIES_PREFIX" }, { "declarator": "prefixes", "mo...
{ "body": "@Override\n public DriverLifecycle getDriverLifecycle() {\n return getEnumProperty(DriverLifecycle.class, \"driverLifecycle\");\n }", "class_method_signature": "PropertiesBackendConfiguration.getDriverLifecycle()", "constructor": false, "full_signature": "@Override public DriverLifecycle...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_493
{ "fields": [ { "declarator": "fluentControlWait", "modifier": "@Mock\n private", "original_string": "@Mock\n private FluentWait fluentControlWait;", "type": "FluentWait", "var_name": "fluentControlWait" }, { "declarator": "fluentWebElement", "modifier": "@M...
{ "body": "@Test\n public void atMostMillis() {\n assertThat(wait.atMost(10)).isSameAs(wait);\n Mockito.verify(fluentControlWait).atMost(Duration.ofMillis(10));\n }", "class_method_signature": "FluentWaitElementTest.atMostMillis()", "constructor": false, "full_signature": "@Test public void ...
{ "fields": [ { "declarator": "element", "modifier": "private final", "original_string": "private final FluentWebElement element;", "type": "FluentWebElement", "var_name": "element" }, { "declarator": "controlWait", "modifier": "private final", "original_str...
{ "body": "@Override\n public FluentWaitElement atMost(Duration duration) {\n controlWait.atMost(duration);\n return this;\n }", "class_method_signature": "FluentWaitElement.atMost(Duration duration)", "constructor": false, "full_signature": "@Override public FluentWaitElement atMost(Duratio...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_186
{ "fields": [ { "declarator": "configuration", "modifier": "private static", "original_string": "private static AnnotationConfiguration configuration;", "type": "AnnotationConfiguration", "var_name": "configuration" }, { "declarator": "defaultConfiguration", "modi...
{ "body": "@Test\n public void capabilitiesCannotBeConvertedFromJson() {\n Assertions.assertThatThrownBy(() -> capabilitiesInvalidJsonConfiguration.getCapabilities())\n .isInstanceOf(ConfigurationException.class)\n .hasMessage(\"Can't convert JSON Capabilities to Object.\");\n ...
{ "fields": [ { "declarator": "configuration", "modifier": "private final", "original_string": "private final FluentConfiguration configuration;", "type": "FluentConfiguration", "var_name": "configuration" }, { "declarator": "customProperties = new HashMap<>()", "...
{ "body": "@Override\n public Capabilities getCapabilities() {\n return getConfig(() -> getCapabilitiesValue(configuration.capabilities()));\n }", "class_method_signature": "AnnotationConfiguration.getCapabilities()", "constructor": false, "full_signature": "@Override public Capabilities getCapabil...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_46
{ "fields": [ { "declarator": "element", "modifier": "@Mock\n private", "original_string": "@Mock\n private FluentWebElement element;", "type": "FluentWebElement", "var_name": "element" }, { "declarator": "elementAssert", "modifier": "private", "origin...
{ "body": "@Test\n public void shouldFailWhenNoClassAttributeIsPresent() {\n when(element.attribute(\"class\")).thenReturn(null);\n assertThatAssertionErrorIsThrownBy(() -> elementAssert.hasClasses(\"clazz\", \"clazz2\", \"clazz4\"))\n .hasMessage(\"The element has no class attribute.\...
{ "fields": [], "file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/FluentWebElementAssert.java", "identifier": "FluentWebElementAssert", "interfaces": "implements ElementStateAssert, ElementAttributeAssert", "methods": [ { "class_method_signature": "FluentWebElementAssert.Fl...
{ "body": "@Override\n public FluentWebElementAssert hasClasses(String... classesToFind) {\n String actualClasses = actual.attribute(CLASS_ATTRIBUTE);\n\n if (actualClasses == null) {\n failWithMessage(\"The element has no class attribute.\");\n }\n\n if (!getClasses(actualCl...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_305
{ "fields": [ { "declarator": "htmlUnitPerformanceTiming", "modifier": "@Mock\n private", "original_string": "@Mock\n private PerformanceTiming htmlUnitPerformanceTiming;", "type": "PerformanceTiming", "var_name": "htmlUnitPerformanceTiming" }, { "declarator": "me...
{ "body": "@Test\n public void shouldReturnNegativeValueIfEventHasNotBeenRegistered() {\n assertThat(metrics.getUnloadEventEnd()).isEqualTo(-16500L);\n }", "class_method_signature": "HtmlUnitPerformanceTimingMetricsTest.shouldReturnNegativeValueIfEventHasNotBeenRegistered()", "constructor": false, ...
{ "fields": [ { "declarator": "timing", "modifier": "private final", "original_string": "private final PerformanceTiming timing;", "type": "PerformanceTiming", "var_name": "timing" }, { "declarator": "targetTimeUnit", "modifier": "private final", "original_s...
{ "body": "@Override\n public long getUnloadEventEnd() {\n return getEventValue(timing::getUnloadEventEnd);\n }", "class_method_signature": "HtmlUnitPerformanceTimingMetrics.getUnloadEventEnd()", "constructor": false, "full_signature": "@Override public long getUnloadEventEnd()", "identifier": "g...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_240
{ "fields": [], "file": "fluentlenium-core/src/test/java/org/fluentlenium/utils/UrlUtilsTest.java", "identifier": "UrlUtilsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSanitizeBaseUrlOtherDomain() {\n String baseUrl = UrlUtils.sanitizeBaseUrl(\"http://fluentlenium.com/path/\", \"https://www.google.com/path/abc\");\n Assertions.assertThat(baseUrl).isEqualTo(\"http://fluentlenium.com/path/\");\n }", "class_method_signature": "U...
{ "fields": [ { "declarator": "PATH_SEPARATOR = \"/\"", "modifier": "private static final", "original_string": "private static final String PATH_SEPARATOR = \"/\";", "type": "String", "var_name": "PATH_SEPARATOR" }, { "declarator": "HTTP = \"http\"", "modifier": "...
{ "body": "public static String sanitizeBaseUrl(String baseUriSpec, String uriSpec) {\n if (baseUriSpec != null) {\n URI baseUri = URI.create(baseUriSpec);\n\n try {\n baseUri = ensureScheme(baseUri, HTTP);\n\n URI uri = uriFromSpec(uriSpec);\n ...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_610
{ "fields": [ { "declarator": "element", "modifier": "@Mock\n private", "original_string": "@Mock\n private LocatableElement element;", "type": "LocatableElement", "var_name": "element" }, { "declarator": "driver", "modifier": "@Mock\n private", "or...
{ "body": "@Test\n public void testGetId() {\n when(element.getAttribute(\"id\")).thenReturn(\"test\");\n assertThat(fluentElement.id()).isEqualTo(\"test\");\n }", "class_method_signature": "FluentWebElementTest.testGetId()", "constructor": false, "full_signature": "@Test public void testGet...
{ "fields": [ { "declarator": "search", "modifier": "private final", "original_string": "private final Search search;", "type": "Search", "var_name": "search" }, { "declarator": "dom", "modifier": "private final", "original_string": "private final Dom dom;",...
{ "body": "public String id() {\n return webElement.getAttribute(\"id\");\n }", "class_method_signature": "FluentWebElement.id()", "constructor": false, "full_signature": "public String id()", "identifier": "id", "invocations": [ "getAttribute" ], "modifiers": "public", "parameters": "()...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_407
{ "fields": [ { "declarator": "A_VALUE = \"value\"", "modifier": "private static final", "original_string": "private static final String A_VALUE = \"value\";", "type": "String", "var_name": "A_VALUE" }, { "declarator": "A_REGEX_VALUE = \"regex.*\"", "modifier": "p...
{ "body": "@Test\n public void shouldNotSupportCssFilterWhenAttributeIsTextContent() {\n AbstractMatcher matcher = new EqualMatcher(Pattern.compile(A_REGEX_VALUE));\n AttributeFilter attributeFilter = new AttributeFilter(\"textContent\", matcher);\n\n assertThat(attributeFilter.isCssFilterSupp...
{ "fields": [ { "declarator": "attributeName", "modifier": "private final", "original_string": "private final String attributeName;", "type": "String", "var_name": "attributeName" }, { "declarator": "matcher", "modifier": "private final", "original_string": ...
{ "body": "@Override\n public boolean isCssFilterSupported() {\n return matcher != null\n && matcher.isCssFilterSupported()\n && !\"text\".equalsIgnoreCase(getAttribute())\n && !\"textContent\".equalsIgnoreCase(getAttribute());\n }", "class_method_signature": "Attribute...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_542
{ "fields": [ { "declarator": "keyboard", "modifier": "@Mock\n private", "original_string": "@Mock\n private Keyboard keyboard;", "type": "Keyboard", "var_name": "keyboard" }, { "declarator": "mouse", "modifier": "@Mock\n private", "original_string"...
{ "body": "@Test\n public void testClickAndHold() {\n MouseActions actions = new MouseActions(driver);\n actions.clickAndHold();\n\n verify(mouse, never()).mouseMove(any(Coordinates.class));\n verify(mouse).mouseDown(any());\n }", "class_method_signature": "MouseActionsTest.testCli...
{ "fields": [ { "declarator": "driver", "modifier": "private final", "original_string": "private final WebDriver driver;", "type": "WebDriver", "var_name": "driver" } ], "file": "fluentlenium-core/src/main/java/org/fluentlenium/core/action/MouseActions.java", "identifier": ...
{ "body": "public MouseActions clickAndHold() {\n actions().clickAndHold().perform();\n return this;\n }", "class_method_signature": "MouseActions.clickAndHold()", "constructor": false, "full_signature": "public MouseActions clickAndHold()", "identifier": "clickAndHold", "invocations": [ ...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_112
{ "fields": [ { "declarator": "fluentList", "modifier": "@Mock\n private", "original_string": "@Mock\n private FluentList<FluentWebElement> fluentList;", "type": "FluentList<FluentWebElement>", "var_name": "fluentList" }, { "declarator": "listAssert", "modif...
{ "body": "@Test\n public void testHasIdKo() {\n when(fluentList.ids()).thenReturn(singletonList(\"other-id\"));\n assertThatAssertionErrorIsThrownBy(() -> listAssert.hasId(\"some-id\"))\n .hasMessage(\"No selected elements have id: some-id. Actual ids found : [other-id]\");\n }", ...
{ "fields": [], "file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/FluentListAssert.java", "identifier": "FluentListAssert", "interfaces": "implements ListStateAssert, ListAttributeAssert", "methods": [ { "class_method_signature": "FluentListAssert.FluentListAssert(FluentLis...
{ "body": "@Override\n public FluentListAssert hasId(String idToFind) {\n List<String> actualIds = requiresNonEmpty(actual.ids());\n if (!actualIds.contains(idToFind)) {\n failWithMessage(\"No selected elements have id: \" + idToFind\n + \". Actual ids found : \" + actua...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_391
{ "fields": [ { "declarator": "element", "modifier": "@Mock\n private", "original_string": "@Mock\n private WebElement element;", "type": "WebElement", "var_name": "element" }, { "declarator": "driver", "modifier": "@Mock\n private", "original_strin...
{ "body": "@Test\n public void testFollowingSiblings() {\n Dom dom = new Dom(element, instantiator);\n\n List<WebElement> elements = Arrays.asList(mock(WebElement.class), mock(WebElement.class), mock(WebElement.class));\n when(element.findElements(By.xpath(\"following-sibling::*\"))).thenRetur...
{ "fields": [ { "declarator": "webElement", "modifier": "private final", "original_string": "private final WebElement webElement;", "type": "WebElement", "var_name": "webElement" }, { "declarator": "instantiator", "modifier": "private final", "original_strin...
{ "body": "public FluentList<FluentWebElement> followingSiblings() {\n return handleAxe(\"following-sibling\");\n }", "class_method_signature": "Dom.followingSiblings()", "constructor": false, "full_signature": "public FluentList<FluentWebElement> followingSiblings()", "identifier": "followingSiblin...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_450
{ "fields": [], "file": "fluentlenium-core/src/test/java/org/fluentlenium/core/filter/matcher/CalculateServiceTest.java", "identifier": "CalculateServiceTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void checkSimpleEndsWithReturnsFalseIfCurrentValueIsEmpty() {\n assertThat(CalculateService.endsWith(Pattern.compile(\".*\"), \"to\", \"\")).isFalse();\n }", "class_method_signature": "CalculateServiceTest.checkSimpleEndsWithReturnsFalseIfCurrentValueIsEmpty()", "constructor...
{ "fields": [], "file": "fluentlenium-core/src/main/java/org/fluentlenium/core/filter/matcher/CalculateService.java", "identifier": "CalculateService", "interfaces": "", "methods": [ { "class_method_signature": "CalculateService.CalculateService()", "constructor": true, "full_signature":...
{ "body": "public static boolean endsWith(Pattern patternValue, String referenceValue, String currentValue) {\n if (currentValue == null || currentValue.isEmpty()) {\n return false;\n }\n if (patternValue == null) {\n return currentValue.endsWith(referenceValue);\n }\...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_145
{ "fields": [ { "declarator": "retriever", "modifier": "private", "original_string": "private CapabilitiesConfigurationPropertyRetriever retriever;", "type": "CapabilitiesConfigurationPropertyRetriever", "var_name": "retriever" } ], "file": "fluentlenium-core/src/test/java/or...
{ "body": "@Test\n public void desiredCapabilities() {\n DesiredCapabilities capabilitiesFirefox = DesiredCapabilities.firefox();\n\n Capabilities capabilities = retriever.getCapabilitiesProperty(\"firefox\", null);\n\n assertThat(capabilities).isEqualTo(capabilitiesFirefox);\n }", "class...
{ "fields": [ { "declarator": "jsonConverter = new Json()", "modifier": "private final", "original_string": "private final Json jsonConverter = new Json();", "type": "Json", "var_name": "jsonConverter" } ], "file": "fluentlenium-core/src/main/java/org/fluentlenium/configurati...
{ "body": "Capabilities getCapabilitiesProperty(String capabilities, ConfigurationProperties globalConfiguration) {\n String property = readCapabilitiesFromUrl(capabilities);\n return Optional.ofNullable(createCapabilitiesFromFactory(property, globalConfiguration))\n .orElseGet(() -> conv...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_515
{ "fields": [ { "declarator": "fluentControlWait", "modifier": "@Mock\n private", "original_string": "@Mock\n private FluentWait fluentControlWait;", "type": "FluentWait", "var_name": "fluentControlWait" }, { "declarator": "fluentWebElement", "modifier": "@M...
{ "body": "@Test\n public void untilBooleanSupplier() {\n Supplier<Boolean> isTrue = mock(Supplier.class);\n\n wait.until(isTrue);\n Mockito.verify(fluentControlWait).until(isTrue);\n }", "class_method_signature": "FluentWaitElementTest.untilBooleanSupplier()", "constructor": false, "...
{ "fields": [ { "declarator": "element", "modifier": "private final", "original_string": "private final FluentWebElement element;", "type": "FluentWebElement", "var_name": "element" }, { "declarator": "controlWait", "modifier": "private final", "original_str...
{ "body": "public FluentConditions until() {\n return controlWait.until(element);\n }", "class_method_signature": "FluentWaitElement.until()", "constructor": false, "full_signature": "public FluentConditions until()", "identifier": "until", "invocations": [ "until" ], "modifiers": "public"...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_85
{ "fields": [ { "declarator": "alert", "modifier": "@Mock\n private", "original_string": "@Mock\n private AlertImpl alert;", "type": "AlertImpl", "var_name": "alert" }, { "declarator": "alertAssert", "modifier": "private", "original_string": "private A...
{ "body": "@Test\n public void testIsPresentNegative() {\n when(alert.present()).thenReturn(false);\n assertThatThrownBy(() -> alertAssert.isPresent())\n .isInstanceOf(AssertionError.class)\n .hasMessage(\"There is no alert box\");\n }", "class_method_signature": "A...
{ "fields": [], "file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/AlertAssert.java", "identifier": "AlertAssert", "interfaces": "implements AlertStateAssert", "methods": [ { "class_method_signature": "AlertAssert.AlertAssert(AlertImpl actual)", "constructor": true, ...
{ "body": "@Override\n public AlertStateAssert isPresent() {\n if (!actual.present()) {\n failWithMessage(\"There is no alert box\");\n }\n return this;\n }", "class_method_signature": "AlertAssert.isPresent()", "constructor": false, "full_signature": "@Override public Aler...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_283
{ "fields": [], "file": "fluentlenium-core/src/test/java/org/fluentlenium/core/url/UrlTemplateTest.java", "identifier": "UrlTemplateTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testParseOptionalPathParameter() {\n UrlTemplate urlParametersTemplate = new UrlTemplate(\"/abc/{param1}{?/def/param2}{?/param3}\");\n assertThat(getParameterNames(urlParametersTemplate)).containsExactly(\"param1\", \"param2\", \"param3\");\n assertThat(getParame...
{ "fields": [ { "declarator": "PARAM_REGEX = Pattern.compile(\"\\\\{(.+?)\\\\}\")", "modifier": "private static final", "original_string": "private static final Pattern PARAM_REGEX = Pattern.compile(\"\\\\{(.+?)\\\\}\");", "type": "Pattern", "var_name": "PARAM_REGEX" }, { ...
{ "body": "public ParsedUrlTemplate parse(String input) {\n String noQueryInput;\n List<NameValuePair> queryParameters;\n\n try {\n URIBuilder uriBuilder = new URIBuilder(input);\n queryParameters = uriBuilder.getQueryParams();\n uriBuilder.setCustomQuery(null);\n...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_329
{ "fields": [ { "declarator": "locator", "modifier": "@Mock\n private", "original_string": "@Mock\n private ElementLocator locator;", "type": "ElementLocator", "var_name": "locator" }, { "declarator": "invocationHandler", "modifier": "private", "origin...
{ "body": "@Test\n public void testNotLoadedEqualsWithRetry() throws Throwable {\n WebElement proxy = mock(WebElement.class);\n Method equals = getMethod(\"equals\", Object.class);\n Object[] args = {mock(WebElement.class)};\n when(invocationHandler.loaded()).thenReturn(false);\n ...
{ "fields": [ { "declarator": "TO_STRING = getMethod(Object.class, \"toString\")", "modifier": "private static final", "original_string": "private static final Method TO_STRING = getMethod(Object.class, \"toString\");", "type": "Method", "var_name": "TO_STRING" }, { "de...
{ "body": "@Override\n public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {\n Object invocationResult = null;\n if (TO_STRING.equals(method)) {\n invocationResult = proxyToString(loaded() ? (String) invoke(method, args) : null);\n } else if (loaded()) ...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_446
{ "fields": [], "file": "fluentlenium-core/src/test/java/org/fluentlenium/core/filter/matcher/CalculateServiceTest.java", "identifier": "CalculateServiceTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void checkPatternStartsWithOk() {\n assertThat(CalculateService.startsWith(Pattern.compile(\"[to]*\"), null, \"toto\")).isTrue();\n\n }", "class_method_signature": "CalculateServiceTest.checkPatternStartsWithOk()", "constructor": false, "full_signature": "@Test public void...
{ "fields": [], "file": "fluentlenium-core/src/main/java/org/fluentlenium/core/filter/matcher/CalculateService.java", "identifier": "CalculateService", "interfaces": "", "methods": [ { "class_method_signature": "CalculateService.CalculateService()", "constructor": true, "full_signature":...
{ "body": "public static boolean startsWith(Pattern patternValue, String referenceValue, String currentValue) {\n if (currentValue == null) {\n return false;\n }\n if (patternValue == null) {\n return currentValue.startsWith(referenceValue);\n }\n java.util.reg...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_503
{ "fields": [ { "declarator": "fluentControlWait", "modifier": "@Mock\n private", "original_string": "@Mock\n private FluentWait fluentControlWait;", "type": "FluentWait", "var_name": "fluentControlWait" }, { "declarator": "fluentWebElement", "modifier": "@M...
{ "body": "@Test\n public void withNoDefaultsException() {\n wait.withNoDefaultsException();\n Mockito.verify(fluentControlWait).withNoDefaultsException();\n }", "class_method_signature": "FluentWaitElementTest.withNoDefaultsException()", "constructor": false, "full_signature": "@Test public...
{ "fields": [ { "declarator": "element", "modifier": "private final", "original_string": "private final FluentWebElement element;", "type": "FluentWebElement", "var_name": "element" }, { "declarator": "controlWait", "modifier": "private final", "original_str...
{ "body": "@Override\n public FluentWaitElement withNoDefaultsException() {\n controlWait.withNoDefaultsException();\n return this;\n }", "class_method_signature": "FluentWaitElement.withNoDefaultsException()", "constructor": false, "full_signature": "@Override public FluentWaitElement withN...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_153
{ "fields": [ { "declarator": "DRIVER_LIFECYCLE = \"driverLifecycle\"", "modifier": "private static final", "original_string": "private static final String DRIVER_LIFECYCLE = \"driverLifecycle\";", "type": "String", "var_name": "DRIVER_LIFECYCLE" }, { "declarator": "ret...
{ "body": "@Test\n public void notFoundClass() {\n assertThat(getConfiguration().getConfigurationFactory()).isNull();\n\n mockProperty(\"configurationFactory\", \"dummy\");\n assertThat(getConfiguration().getConfigurationFactory()).isNull();\n }", "class_method_signature": "PropertiesBack...
{ "fields": [ { "declarator": "PROPERTIES_PREFIX = \"fluentlenium.\"", "modifier": "static final", "original_string": "static final String PROPERTIES_PREFIX = \"fluentlenium.\";", "type": "String", "var_name": "PROPERTIES_PREFIX" }, { "declarator": "prefixes", "mo...
{ "body": "@Override\n public Class<? extends ConfigurationFactory> getConfigurationFactory() {\n return getClassProperty(ConfigurationFactory.class, \"configurationFactory\");\n }", "class_method_signature": "PropertiesBackendConfiguration.getConfigurationFactory()", "constructor": false, "full_si...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...