repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
partition
stringclasses
1 value
Coveros/selenified
src/main/java/com/coveros/selenified/application/WaitFor.java
WaitFor.alertEquals
public void alertEquals(double seconds, String expectedAlertText) { try { double timeTook = popup(seconds); timeTook = popupEquals(seconds - timeTook, expectedAlertText); checkAlertEquals(expectedAlertText, seconds, timeTook); } catch (TimeoutException e) { ...
java
public void alertEquals(double seconds, String expectedAlertText) { try { double timeTook = popup(seconds); timeTook = popupEquals(seconds - timeTook, expectedAlertText); checkAlertEquals(expectedAlertText, seconds, timeTook); } catch (TimeoutException e) { ...
[ "public", "void", "alertEquals", "(", "double", "seconds", ",", "String", "expectedAlertText", ")", "{", "try", "{", "double", "timeTook", "=", "popup", "(", "seconds", ")", ";", "timeTook", "=", "popupEquals", "(", "seconds", "-", "timeTook", ",", "expected...
Waits up to the provided wait time for an alert present on the page has content equal to the expected text. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param expectedAlertText the expected text of the alert @param seconds the number of second...
[ "Waits", "up", "to", "the", "provided", "wait", "time", "for", "an", "alert", "present", "on", "the", "page", "has", "content", "equal", "to", "the", "expected", "text", ".", "This", "information", "will", "be", "logged", "and", "recorded", "with", "a", ...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/WaitFor.java#L492-L500
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/WaitFor.java
WaitFor.alertMatches
public void alertMatches(double seconds, String expectedAlertPattern) { try { double timeTook = popup(seconds); timeTook = popupMatches(seconds - timeTook, expectedAlertPattern); checkAlertMatches(expectedAlertPattern, seconds, timeTook); } catch (TimeoutException e) ...
java
public void alertMatches(double seconds, String expectedAlertPattern) { try { double timeTook = popup(seconds); timeTook = popupMatches(seconds - timeTook, expectedAlertPattern); checkAlertMatches(expectedAlertPattern, seconds, timeTook); } catch (TimeoutException e) ...
[ "public", "void", "alertMatches", "(", "double", "seconds", ",", "String", "expectedAlertPattern", ")", "{", "try", "{", "double", "timeTook", "=", "popup", "(", "seconds", ")", ";", "timeTook", "=", "popupMatches", "(", "seconds", "-", "timeTook", ",", "exp...
Waits up to the provided wait time for an alert present on the page has content matching the expected patten. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param expectedAlertPattern the expected text of the alert @param seconds the number o...
[ "Waits", "up", "to", "the", "provided", "wait", "time", "for", "an", "alert", "present", "on", "the", "page", "has", "content", "matching", "the", "expected", "patten", ".", "This", "information", "will", "be", "logged", "and", "recorded", "with", "a", "sc...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/WaitFor.java#L510-L518
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/WaitFor.java
WaitFor.confirmationPresent
public void confirmationPresent(double seconds) { try { double timeTook = popup(seconds); checkConfirmationPresent(seconds, timeTook); } catch (TimeoutException e) { checkConfirmationPresent(seconds, seconds); } }
java
public void confirmationPresent(double seconds) { try { double timeTook = popup(seconds); checkConfirmationPresent(seconds, timeTook); } catch (TimeoutException e) { checkConfirmationPresent(seconds, seconds); } }
[ "public", "void", "confirmationPresent", "(", "double", "seconds", ")", "{", "try", "{", "double", "timeTook", "=", "popup", "(", "seconds", ")", ";", "checkConfirmationPresent", "(", "seconds", ",", "timeTook", ")", ";", "}", "catch", "(", "TimeoutException",...
Waits up to the provided wait time for a confirmation is present on the page. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param seconds the number of seconds to wait
[ "Waits", "up", "to", "the", "provided", "wait", "time", "for", "a", "confirmation", "is", "present", "on", "the", "page", ".", "This", "information", "will", "be", "logged", "and", "recorded", "with", "a", "screenshot", "for", "traceability", "and", "added",...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/WaitFor.java#L527-L534
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/WaitFor.java
WaitFor.confirmationNotPresent
public void confirmationNotPresent(double seconds) { try { double timeTook = noPopup(seconds); checkConfirmationNotPresent(seconds, timeTook); } catch (TimeoutException e) { checkConfirmationNotPresent(seconds, seconds); } }
java
public void confirmationNotPresent(double seconds) { try { double timeTook = noPopup(seconds); checkConfirmationNotPresent(seconds, timeTook); } catch (TimeoutException e) { checkConfirmationNotPresent(seconds, seconds); } }
[ "public", "void", "confirmationNotPresent", "(", "double", "seconds", ")", "{", "try", "{", "double", "timeTook", "=", "noPopup", "(", "seconds", ")", ";", "checkConfirmationNotPresent", "(", "seconds", ",", "timeTook", ")", ";", "}", "catch", "(", "TimeoutExc...
Waits up to the provided wait time for a confirmation is not present on the page. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param seconds the number of seconds to wait
[ "Waits", "up", "to", "the", "provided", "wait", "time", "for", "a", "confirmation", "is", "not", "present", "on", "the", "page", ".", "This", "information", "will", "be", "logged", "and", "recorded", "with", "a", "screenshot", "for", "traceability", "and", ...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/WaitFor.java#L543-L550
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/WaitFor.java
WaitFor.confirmationEquals
public void confirmationEquals(double seconds, String expectedConfirmationText) { try { double timeTook = popup(seconds); timeTook = popupEquals(seconds - timeTook, expectedConfirmationText); checkConfirmationEquals(expectedConfirmationText, seconds, timeTook); } catc...
java
public void confirmationEquals(double seconds, String expectedConfirmationText) { try { double timeTook = popup(seconds); timeTook = popupEquals(seconds - timeTook, expectedConfirmationText); checkConfirmationEquals(expectedConfirmationText, seconds, timeTook); } catc...
[ "public", "void", "confirmationEquals", "(", "double", "seconds", ",", "String", "expectedConfirmationText", ")", "{", "try", "{", "double", "timeTook", "=", "popup", "(", "seconds", ")", ";", "timeTook", "=", "popupEquals", "(", "seconds", "-", "timeTook", ",...
Waits up to the provided wait time for a confirmation present on the page has content equal to the expected text. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param expectedConfirmationText the expected text of the confirmation @param seconds ...
[ "Waits", "up", "to", "the", "provided", "wait", "time", "for", "a", "confirmation", "present", "on", "the", "page", "has", "content", "equal", "to", "the", "expected", "text", ".", "This", "information", "will", "be", "logged", "and", "recorded", "with", "...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/WaitFor.java#L560-L568
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/WaitFor.java
WaitFor.confirmationMatches
public void confirmationMatches(double seconds, String expectedConfirmationPattern) { try { double timeTook = popup(seconds); timeTook = popupMatches(seconds - timeTook, expectedConfirmationPattern); checkConfirmationMatches(expectedConfirmationPattern, seconds, timeTook); ...
java
public void confirmationMatches(double seconds, String expectedConfirmationPattern) { try { double timeTook = popup(seconds); timeTook = popupMatches(seconds - timeTook, expectedConfirmationPattern); checkConfirmationMatches(expectedConfirmationPattern, seconds, timeTook); ...
[ "public", "void", "confirmationMatches", "(", "double", "seconds", ",", "String", "expectedConfirmationPattern", ")", "{", "try", "{", "double", "timeTook", "=", "popup", "(", "seconds", ")", ";", "timeTook", "=", "popupMatches", "(", "seconds", "-", "timeTook",...
Waits up to the provided wait time for a confirmation present on the page has content matching the expected text. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param expectedConfirmationPattern the expected text of the confirmation @param seconds ...
[ "Waits", "up", "to", "the", "provided", "wait", "time", "for", "a", "confirmation", "present", "on", "the", "page", "has", "content", "matching", "the", "expected", "text", ".", "This", "information", "will", "be", "logged", "and", "recorded", "with", "a", ...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/WaitFor.java#L578-L586
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/WaitFor.java
WaitFor.promptPresent
public void promptPresent(double seconds) { try { double timeTook = popup(seconds); checkPromptPresent(seconds, timeTook); } catch (TimeoutException e) { checkPromptPresent(seconds, seconds); } }
java
public void promptPresent(double seconds) { try { double timeTook = popup(seconds); checkPromptPresent(seconds, timeTook); } catch (TimeoutException e) { checkPromptPresent(seconds, seconds); } }
[ "public", "void", "promptPresent", "(", "double", "seconds", ")", "{", "try", "{", "double", "timeTook", "=", "popup", "(", "seconds", ")", ";", "checkPromptPresent", "(", "seconds", ",", "timeTook", ")", ";", "}", "catch", "(", "TimeoutException", "e", ")...
Waits up to the provided wait time for a prompt is present on the page. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param seconds the number of seconds to wait
[ "Waits", "up", "to", "the", "provided", "wait", "time", "for", "a", "prompt", "is", "present", "on", "the", "page", ".", "This", "information", "will", "be", "logged", "and", "recorded", "with", "a", "screenshot", "for", "traceability", "and", "added", "de...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/WaitFor.java#L595-L602
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/WaitFor.java
WaitFor.promptNotPresent
public void promptNotPresent(double seconds) { try { double timeTook = noPopup(seconds); checkPromptNotPresent(seconds, timeTook); } catch (TimeoutException e) { checkPromptNotPresent(seconds, seconds); } }
java
public void promptNotPresent(double seconds) { try { double timeTook = noPopup(seconds); checkPromptNotPresent(seconds, timeTook); } catch (TimeoutException e) { checkPromptNotPresent(seconds, seconds); } }
[ "public", "void", "promptNotPresent", "(", "double", "seconds", ")", "{", "try", "{", "double", "timeTook", "=", "noPopup", "(", "seconds", ")", ";", "checkPromptNotPresent", "(", "seconds", ",", "timeTook", ")", ";", "}", "catch", "(", "TimeoutException", "...
Waits up to the provided wait time for a prompt is not present on the page. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param seconds the number of seconds to wait
[ "Waits", "up", "to", "the", "provided", "wait", "time", "for", "a", "prompt", "is", "not", "present", "on", "the", "page", ".", "This", "information", "will", "be", "logged", "and", "recorded", "with", "a", "screenshot", "for", "traceability", "and", "adde...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/WaitFor.java#L611-L618
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/WaitFor.java
WaitFor.promptEquals
public void promptEquals(double seconds, String expectedPromptText) { try { double timeTook = popup(seconds); timeTook = popupEquals(seconds - timeTook, expectedPromptText); checkPromptEquals(expectedPromptText, seconds, timeTook); } catch (TimeoutException e) { ...
java
public void promptEquals(double seconds, String expectedPromptText) { try { double timeTook = popup(seconds); timeTook = popupEquals(seconds - timeTook, expectedPromptText); checkPromptEquals(expectedPromptText, seconds, timeTook); } catch (TimeoutException e) { ...
[ "public", "void", "promptEquals", "(", "double", "seconds", ",", "String", "expectedPromptText", ")", "{", "try", "{", "double", "timeTook", "=", "popup", "(", "seconds", ")", ";", "timeTook", "=", "popupEquals", "(", "seconds", "-", "timeTook", ",", "expect...
Waits up to the provided wait time for a prompt present on the page has content equal to the expected text. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param expectedPromptText the expected text of the prompt @param seconds the number of sec...
[ "Waits", "up", "to", "the", "provided", "wait", "time", "for", "a", "prompt", "present", "on", "the", "page", "has", "content", "equal", "to", "the", "expected", "text", ".", "This", "information", "will", "be", "logged", "and", "recorded", "with", "a", ...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/WaitFor.java#L628-L636
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/WaitFor.java
WaitFor.promptMatches
public void promptMatches(double seconds, String expectedPromptPattern) { try { double timeTook = popup(seconds); timeTook = popupMatches(seconds - timeTook, expectedPromptPattern); checkPromptMatches(expectedPromptPattern, seconds, timeTook); } catch (TimeoutExceptio...
java
public void promptMatches(double seconds, String expectedPromptPattern) { try { double timeTook = popup(seconds); timeTook = popupMatches(seconds - timeTook, expectedPromptPattern); checkPromptMatches(expectedPromptPattern, seconds, timeTook); } catch (TimeoutExceptio...
[ "public", "void", "promptMatches", "(", "double", "seconds", ",", "String", "expectedPromptPattern", ")", "{", "try", "{", "double", "timeTook", "=", "popup", "(", "seconds", ")", ";", "timeTook", "=", "popupMatches", "(", "seconds", "-", "timeTook", ",", "e...
Waits up to the provided wait time for a prompt present on the page has content matching the expected text. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param expectedPromptPattern the expected text of the prompt @param seconds the number ...
[ "Waits", "up", "to", "the", "provided", "wait", "time", "for", "a", "prompt", "present", "on", "the", "page", "has", "content", "matching", "the", "expected", "text", ".", "This", "information", "will", "be", "logged", "and", "recorded", "with", "a", "scre...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/WaitFor.java#L646-L654
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/WaitFor.java
WaitFor.cookieExists
public void cookieExists(double seconds, String expectedCookieName) { double end = System.currentTimeMillis() + (seconds * 1000); while (!app.is().cookiePresent(expectedCookieName) && System.currentTimeMillis() < end) ; double timeTook = Math.min((seconds * 1000) - (end - System.currentTimeMilli...
java
public void cookieExists(double seconds, String expectedCookieName) { double end = System.currentTimeMillis() + (seconds * 1000); while (!app.is().cookiePresent(expectedCookieName) && System.currentTimeMillis() < end) ; double timeTook = Math.min((seconds * 1000) - (end - System.currentTimeMilli...
[ "public", "void", "cookieExists", "(", "double", "seconds", ",", "String", "expectedCookieName", ")", "{", "double", "end", "=", "System", ".", "currentTimeMillis", "(", ")", "+", "(", "seconds", "*", "1000", ")", ";", "while", "(", "!", "app", ".", "is"...
Waits up to the provided wait time for a cookie exists in the application with the provided cookieName. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param expectedCookieName the name of the cookie @param seconds the number of seconds to wait
[ "Waits", "up", "to", "the", "provided", "wait", "time", "for", "a", "cookie", "exists", "in", "the", "application", "with", "the", "provided", "cookieName", ".", "This", "information", "will", "be", "logged", "and", "recorded", "with", "a", "screenshot", "fo...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/WaitFor.java#L694-L699
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/WaitFor.java
WaitFor.cookieNotExists
public void cookieNotExists(double seconds, String unexpectedCookieName) { double end = System.currentTimeMillis() + (seconds * 1000); while (app.is().cookiePresent(unexpectedCookieName) && System.currentTimeMillis() < end) ; double timeTook = Math.min((seconds * 1000) - (end - System.currentTim...
java
public void cookieNotExists(double seconds, String unexpectedCookieName) { double end = System.currentTimeMillis() + (seconds * 1000); while (app.is().cookiePresent(unexpectedCookieName) && System.currentTimeMillis() < end) ; double timeTook = Math.min((seconds * 1000) - (end - System.currentTim...
[ "public", "void", "cookieNotExists", "(", "double", "seconds", ",", "String", "unexpectedCookieName", ")", "{", "double", "end", "=", "System", ".", "currentTimeMillis", "(", ")", "+", "(", "seconds", "*", "1000", ")", ";", "while", "(", "app", ".", "is", ...
Waits up to the provided wait time for a cookie doesn't exist in the application with the provided cookieName. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param unexpectedCookieName the name of the cookie @param seconds the number of secon...
[ "Waits", "up", "to", "the", "provided", "wait", "time", "for", "a", "cookie", "doesn", "t", "exist", "in", "the", "application", "with", "the", "provided", "cookieName", ".", "This", "information", "will", "be", "logged", "and", "recorded", "with", "a", "s...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/WaitFor.java#L709-L714
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/WaitFor.java
WaitFor.cookieEquals
public void cookieEquals(double seconds, String cookieName, String expectedCookieValue) { double end = System.currentTimeMillis() + (seconds * 1000); while (app.is().cookiePresent(cookieName) && System.currentTimeMillis() < end) ; if (app.is().cookiePresent(cookieName)) { while (!app...
java
public void cookieEquals(double seconds, String cookieName, String expectedCookieValue) { double end = System.currentTimeMillis() + (seconds * 1000); while (app.is().cookiePresent(cookieName) && System.currentTimeMillis() < end) ; if (app.is().cookiePresent(cookieName)) { while (!app...
[ "public", "void", "cookieEquals", "(", "double", "seconds", ",", "String", "cookieName", ",", "String", "expectedCookieValue", ")", "{", "double", "end", "=", "System", ".", "currentTimeMillis", "(", ")", "+", "(", "seconds", "*", "1000", ")", ";", "while", ...
Waits up to the provided wait time for a cookies with the provided name has a value equal to the expected value. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param cookieName the name of the cookie @param expectedCookieValue the expected value ...
[ "Waits", "up", "to", "the", "provided", "wait", "time", "for", "a", "cookies", "with", "the", "provided", "name", "has", "a", "value", "equal", "to", "the", "expected", "value", ".", "This", "information", "will", "be", "logged", "and", "recorded", "with",...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/WaitFor.java#L725-L733
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/WaitFor.java
WaitFor.cookieMatches
public void cookieMatches(double seconds, String cookieName, String expectedCookiePattern) { double end = System.currentTimeMillis() + (seconds * 1000); while (app.is().cookiePresent(cookieName) && System.currentTimeMillis() < end) ; if (app.is().cookiePresent(cookieName)) { while (!...
java
public void cookieMatches(double seconds, String cookieName, String expectedCookiePattern) { double end = System.currentTimeMillis() + (seconds * 1000); while (app.is().cookiePresent(cookieName) && System.currentTimeMillis() < end) ; if (app.is().cookiePresent(cookieName)) { while (!...
[ "public", "void", "cookieMatches", "(", "double", "seconds", ",", "String", "cookieName", ",", "String", "expectedCookiePattern", ")", "{", "double", "end", "=", "System", ".", "currentTimeMillis", "(", ")", "+", "(", "seconds", "*", "1000", ")", ";", "while...
Waits up to the provided wait time for a cookies with the provided name has a value matching the expected pattern. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param cookieName the name of the cookie @param expectedCookiePattern the expected ...
[ "Waits", "up", "to", "the", "provided", "wait", "time", "for", "a", "cookies", "with", "the", "provided", "name", "has", "a", "value", "matching", "the", "expected", "pattern", ".", "This", "information", "will", "be", "logged", "and", "recorded", "with", ...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/WaitFor.java#L744-L752
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/Is.java
Is.present
public boolean present() { boolean isPresent = false; try { element.getWebElement().getText(); isPresent = true; } catch (NoSuchElementException | StaleElementReferenceException e) { log.info(e); } return isPresent; }
java
public boolean present() { boolean isPresent = false; try { element.getWebElement().getText(); isPresent = true; } catch (NoSuchElementException | StaleElementReferenceException e) { log.info(e); } return isPresent; }
[ "public", "boolean", "present", "(", ")", "{", "boolean", "isPresent", "=", "false", ";", "try", "{", "element", ".", "getWebElement", "(", ")", ".", "getText", "(", ")", ";", "isPresent", "=", "true", ";", "}", "catch", "(", "NoSuchElementException", "|...
Determines whether the element is present or not. @return Boolean: whether the element is present or not
[ "Determines", "whether", "the", "element", "is", "present", "or", "not", "." ]
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/Is.java#L60-L69
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/Is.java
Is.input
public boolean input() { boolean isInput = false; try { WebElement webElement = element.getWebElement(); if ("input".equalsIgnoreCase(webElement.getTagName()) || "textarea".equalsIgnoreCase(webElement.getTagName()) || SELECT.equalsIgnoreCas...
java
public boolean input() { boolean isInput = false; try { WebElement webElement = element.getWebElement(); if ("input".equalsIgnoreCase(webElement.getTagName()) || "textarea".equalsIgnoreCase(webElement.getTagName()) || SELECT.equalsIgnoreCas...
[ "public", "boolean", "input", "(", ")", "{", "boolean", "isInput", "=", "false", ";", "try", "{", "WebElement", "webElement", "=", "element", ".", "getWebElement", "(", ")", ";", "if", "(", "\"input\"", ".", "equalsIgnoreCase", "(", "webElement", ".", "get...
Determines whether the element is an input or not. An input could be an input element, a textarea, or a select @return Boolean: whether the element is an input or not
[ "Determines", "whether", "the", "element", "is", "an", "input", "or", "not", ".", "An", "input", "could", "be", "an", "input", "element", "a", "textarea", "or", "a", "select" ]
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/Is.java#L77-L90
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/Is.java
Is.select
public boolean select() { boolean isSelect = false; try { WebElement webElement = element.getWebElement(); if (SELECT.equalsIgnoreCase(webElement.getTagName())) { isSelect = true; } } catch (NoSuchElementException e) { log.info(e); ...
java
public boolean select() { boolean isSelect = false; try { WebElement webElement = element.getWebElement(); if (SELECT.equalsIgnoreCase(webElement.getTagName())) { isSelect = true; } } catch (NoSuchElementException e) { log.info(e); ...
[ "public", "boolean", "select", "(", ")", "{", "boolean", "isSelect", "=", "false", ";", "try", "{", "WebElement", "webElement", "=", "element", ".", "getWebElement", "(", ")", ";", "if", "(", "SELECT", ".", "equalsIgnoreCase", "(", "webElement", ".", "getT...
Determines whether the element is a select or not. @return Boolean: whether the element is an input or not
[ "Determines", "whether", "the", "element", "is", "a", "select", "or", "not", "." ]
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/Is.java#L97-L108
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/Is.java
Is.table
public boolean table() { boolean isTable = false; try { WebElement webElement = element.getWebElement(); if ("table".equalsIgnoreCase(webElement.getTagName())) { isTable = true; } } catch (NoSuchElementException e) { log.info(e); ...
java
public boolean table() { boolean isTable = false; try { WebElement webElement = element.getWebElement(); if ("table".equalsIgnoreCase(webElement.getTagName())) { isTable = true; } } catch (NoSuchElementException e) { log.info(e); ...
[ "public", "boolean", "table", "(", ")", "{", "boolean", "isTable", "=", "false", ";", "try", "{", "WebElement", "webElement", "=", "element", ".", "getWebElement", "(", ")", ";", "if", "(", "\"table\"", ".", "equalsIgnoreCase", "(", "webElement", ".", "get...
Determines whether the element is a table or not. @return Boolean: whether the element is an input or not
[ "Determines", "whether", "the", "element", "is", "a", "table", "or", "not", "." ]
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/Is.java#L115-L126
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/Is.java
Is.enabled
public boolean enabled() { boolean isEnabled = false; try { // adding additional check for disabled attribute, due to issues with safari isEnabled = (element.getWebElement().isEnabled() && !element.get().allAttributes().containsKey("disabled")); } catch (NullPointerExcept...
java
public boolean enabled() { boolean isEnabled = false; try { // adding additional check for disabled attribute, due to issues with safari isEnabled = (element.getWebElement().isEnabled() && !element.get().allAttributes().containsKey("disabled")); } catch (NullPointerExcept...
[ "public", "boolean", "enabled", "(", ")", "{", "boolean", "isEnabled", "=", "false", ";", "try", "{", "// adding additional check for disabled attribute, due to issues with safari", "isEnabled", "=", "(", "element", ".", "getWebElement", "(", ")", ".", "isEnabled", "(...
Determines whether the element is enabled or not. @return Boolean: whether the element is enabled or not
[ "Determines", "whether", "the", "element", "is", "enabled", "or", "not", "." ]
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/Is.java#L133-L143
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/Is.java
Is.checked
public boolean checked() { boolean isChecked = false; try { isChecked = element.getWebElement().isSelected(); } catch (Exception e) { log.info(e); } return isChecked; }
java
public boolean checked() { boolean isChecked = false; try { isChecked = element.getWebElement().isSelected(); } catch (Exception e) { log.info(e); } return isChecked; }
[ "public", "boolean", "checked", "(", ")", "{", "boolean", "isChecked", "=", "false", ";", "try", "{", "isChecked", "=", "element", ".", "getWebElement", "(", ")", ".", "isSelected", "(", ")", ";", "}", "catch", "(", "Exception", "e", ")", "{", "log", ...
Determines whether the element is checked or not. @return Boolean: whether the element is checked or not
[ "Determines", "whether", "the", "element", "is", "checked", "or", "not", "." ]
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/Is.java#L160-L168
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/Is.java
Is.displayed
public boolean displayed() { boolean isDisplayed = false; try { isDisplayed = element.getWebElement().isDisplayed(); } catch (NoSuchElementException e) { log.info(e); } return isDisplayed; }
java
public boolean displayed() { boolean isDisplayed = false; try { isDisplayed = element.getWebElement().isDisplayed(); } catch (NoSuchElementException e) { log.info(e); } return isDisplayed; }
[ "public", "boolean", "displayed", "(", ")", "{", "boolean", "isDisplayed", "=", "false", ";", "try", "{", "isDisplayed", "=", "element", ".", "getWebElement", "(", ")", ".", "isDisplayed", "(", ")", ";", "}", "catch", "(", "NoSuchElementException", "e", ")...
Determines whether the element is displayed or not. @return Boolean: whether the element is displayed or not
[ "Determines", "whether", "the", "element", "is", "displayed", "or", "not", "." ]
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/Is.java#L175-L183
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/Is.java
Is.somethingSelected
public boolean somethingSelected() { boolean isSelected = false; if (input()) { WebElement webElement = element.getWebElement(); if ("input".equalsIgnoreCase(webElement.getTagName())) { isSelected = webElement.isSelected(); } else if (SELECT.equalsIgno...
java
public boolean somethingSelected() { boolean isSelected = false; if (input()) { WebElement webElement = element.getWebElement(); if ("input".equalsIgnoreCase(webElement.getTagName())) { isSelected = webElement.isSelected(); } else if (SELECT.equalsIgno...
[ "public", "boolean", "somethingSelected", "(", ")", "{", "boolean", "isSelected", "=", "false", ";", "if", "(", "input", "(", ")", ")", "{", "WebElement", "webElement", "=", "element", ".", "getWebElement", "(", ")", ";", "if", "(", "\"input\"", ".", "eq...
Determines whether the element has something selected or not. Checkboxes, radio buttons, and selects could all have something selected. Other elements will default to false. @return Boolean: is something selected or not
[ "Determines", "whether", "the", "element", "has", "something", "selected", "or", "not", ".", "Checkboxes", "radio", "buttons", "and", "selects", "could", "all", "have", "something", "selected", ".", "Other", "elements", "will", "default", "to", "false", "." ]
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/Is.java#L192-L204
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/check/azzert/AssertEquals.java
AssertEquals.cssValue
public void cssValue(String attribute, String expectedValue) { String cssValue = checkCssValue(attribute, expectedValue, 0, 0); String reason = NO_ELEMENT_FOUND; if (cssValue == null && expectedValue != null && getElement().is().present()) { reason = "CSS attribute not found"; ...
java
public void cssValue(String attribute, String expectedValue) { String cssValue = checkCssValue(attribute, expectedValue, 0, 0); String reason = NO_ELEMENT_FOUND; if (cssValue == null && expectedValue != null && getElement().is().present()) { reason = "CSS attribute not found"; ...
[ "public", "void", "cssValue", "(", "String", "attribute", ",", "String", "expectedValue", ")", "{", "String", "cssValue", "=", "checkCssValue", "(", "attribute", ",", "expectedValue", ",", "0", ",", "0", ")", ";", "String", "reason", "=", "NO_ELEMENT_FOUND", ...
Asserts that the element has a css attribute with a value equal to the value provided. If the element isn't present, or the css doesn't contain the desired attribute, this will constitute a failure, same as a mismatch. This information will be logged and recorded, with a screenshot for traceability and added debugging ...
[ "Asserts", "that", "the", "element", "has", "a", "css", "attribute", "with", "a", "value", "equal", "to", "the", "value", "provided", ".", "If", "the", "element", "isn", "t", "present", "or", "the", "css", "doesn", "t", "contain", "the", "desired", "attr...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/check/azzert/AssertEquals.java#L102-L110
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/check/azzert/AssertEquals.java
AssertEquals.attribute
public void attribute(String attribute, String expectedValue) { String value = checkAttribute(attribute, expectedValue, 0, 0); String reason = NO_ELEMENT_FOUND; if (value == null && getElement().is().present()) { reason = "Attribute doesn't exist"; } assertNotNull(rea...
java
public void attribute(String attribute, String expectedValue) { String value = checkAttribute(attribute, expectedValue, 0, 0); String reason = NO_ELEMENT_FOUND; if (value == null && getElement().is().present()) { reason = "Attribute doesn't exist"; } assertNotNull(rea...
[ "public", "void", "attribute", "(", "String", "attribute", ",", "String", "expectedValue", ")", "{", "String", "value", "=", "checkAttribute", "(", "attribute", ",", "expectedValue", ",", "0", ",", "0", ")", ";", "String", "reason", "=", "NO_ELEMENT_FOUND", ...
Asserts that the element has an attribute with a value equals to the value provided. If the element isn't present, or the element does not have the attribute, this will constitute a failure, same as a mismatch. This information will be logged and recorded, with a screenshot for traceability and added debugging support....
[ "Asserts", "that", "the", "element", "has", "an", "attribute", "with", "a", "value", "equals", "to", "the", "value", "provided", ".", "If", "the", "element", "isn", "t", "present", "or", "the", "element", "does", "not", "have", "the", "attribute", "this", ...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/check/azzert/AssertEquals.java#L134-L142
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/check/azzert/AssertEquals.java
AssertEquals.text
public void text(String expectedText) { String text = checkText(expectedText, 0, 0); assertNotNull(NO_ELEMENT_FOUND, text); assertEquals("Text Mismatch", expectedText, text); }
java
public void text(String expectedText) { String text = checkText(expectedText, 0, 0); assertNotNull(NO_ELEMENT_FOUND, text); assertEquals("Text Mismatch", expectedText, text); }
[ "public", "void", "text", "(", "String", "expectedText", ")", "{", "String", "text", "=", "checkText", "(", "expectedText", ",", "0", ",", "0", ")", ";", "assertNotNull", "(", "NO_ELEMENT_FOUND", ",", "text", ")", ";", "assertEquals", "(", "\"Text Mismatch\"...
Asserts that the element's text equals the provided expected text. If the element isn't present, this will constitute a failure, same as a mismatch. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param expectedText the expected value of the element
[ "Asserts", "that", "the", "element", "s", "text", "equals", "the", "provided", "expected", "text", ".", "If", "the", "element", "isn", "t", "present", "this", "will", "constitute", "a", "failure", "same", "as", "a", "mismatch", ".", "This", "information", ...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/check/azzert/AssertEquals.java#L152-L156
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/check/azzert/AssertEquals.java
AssertEquals.text
public void text(int row, int col, String expectedText) { String text = checkText(row, col, expectedText, 0, 0); String reason = NO_ELEMENT_FOUND; if (text == null && getElement().is().present()) { reason = "Element not table"; } assertNotNull(reason, text); a...
java
public void text(int row, int col, String expectedText) { String text = checkText(row, col, expectedText, 0, 0); String reason = NO_ELEMENT_FOUND; if (text == null && getElement().is().present()) { reason = "Element not table"; } assertNotNull(reason, text); a...
[ "public", "void", "text", "(", "int", "row", ",", "int", "col", ",", "String", "expectedText", ")", "{", "String", "text", "=", "checkText", "(", "row", ",", "col", ",", "expectedText", ",", "0", ",", "0", ")", ";", "String", "reason", "=", "NO_ELEME...
Asserts that the element's text in a particular cell equals the provided expected text. If the element isn't present, or a table, this will constitute a failure, same as a mismatch. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param row - the n...
[ "Asserts", "that", "the", "element", "s", "text", "in", "a", "particular", "cell", "equals", "the", "provided", "expected", "text", ".", "If", "the", "element", "isn", "t", "present", "or", "a", "table", "this", "will", "constitute", "a", "failure", "same"...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/check/azzert/AssertEquals.java#L171-L179
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/check/azzert/AssertEquals.java
AssertEquals.value
public void value(String expectedValue) { String value = checkValue(expectedValue, 0, 0); String reason = NO_ELEMENT_FOUND; if (value == null && getElement().is().present()) { reason = "Element not input"; } assertNotNull(reason, value); assertEquals("Value Mi...
java
public void value(String expectedValue) { String value = checkValue(expectedValue, 0, 0); String reason = NO_ELEMENT_FOUND; if (value == null && getElement().is().present()) { reason = "Element not input"; } assertNotNull(reason, value); assertEquals("Value Mi...
[ "public", "void", "value", "(", "String", "expectedValue", ")", "{", "String", "value", "=", "checkValue", "(", "expectedValue", ",", "0", ",", "0", ")", ";", "String", "reason", "=", "NO_ELEMENT_FOUND", ";", "if", "(", "value", "==", "null", "&&", "getE...
Asserts that the element's value equals the provided expected value. If the element isn't present or an input, this will constitute a failure, same as a mismatch. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param expectedValue the expected input value ...
[ "Asserts", "that", "the", "element", "s", "value", "equals", "the", "provided", "expected", "value", ".", "If", "the", "element", "isn", "t", "present", "or", "an", "input", "this", "will", "constitute", "a", "failure", "same", "as", "a", "mismatch", ".", ...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/check/azzert/AssertEquals.java#L189-L197
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/check/azzert/AssertEquals.java
AssertEquals.selectedOption
public void selectedOption(String expectedText) { String option = checkSelectedOption(expectedText, 0, 0); String reason = NO_ELEMENT_FOUND; if (option == null && getElement().is().present()) { reason = ELEMENT_NOT_SELECT; } assertNotNull(reason, option); asse...
java
public void selectedOption(String expectedText) { String option = checkSelectedOption(expectedText, 0, 0); String reason = NO_ELEMENT_FOUND; if (option == null && getElement().is().present()) { reason = ELEMENT_NOT_SELECT; } assertNotNull(reason, option); asse...
[ "public", "void", "selectedOption", "(", "String", "expectedText", ")", "{", "String", "option", "=", "checkSelectedOption", "(", "expectedText", ",", "0", ",", "0", ")", ";", "String", "reason", "=", "NO_ELEMENT_FOUND", ";", "if", "(", "option", "==", "null...
Asserts that the element's selected option equals the provided expected option. If the element isn't present or a select, this will constitute a failure, same as a mismatch. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param expectedText the expected in...
[ "Asserts", "that", "the", "element", "s", "selected", "option", "equals", "the", "provided", "expected", "option", ".", "If", "the", "element", "isn", "t", "present", "or", "a", "select", "this", "will", "constitute", "a", "failure", "same", "as", "a", "mi...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/check/azzert/AssertEquals.java#L207-L215
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/check/azzert/AssertEquals.java
AssertEquals.selectedValue
public void selectedValue(String expectedValue) { String value = checkSelectedValue(expectedValue, 0, 0); String reason = NO_ELEMENT_FOUND; if (value == null && getElement().is().present()) { reason = ELEMENT_NOT_SELECT; } assertNotNull(reason, value); assertE...
java
public void selectedValue(String expectedValue) { String value = checkSelectedValue(expectedValue, 0, 0); String reason = NO_ELEMENT_FOUND; if (value == null && getElement().is().present()) { reason = ELEMENT_NOT_SELECT; } assertNotNull(reason, value); assertE...
[ "public", "void", "selectedValue", "(", "String", "expectedValue", ")", "{", "String", "value", "=", "checkSelectedValue", "(", "expectedValue", ",", "0", ",", "0", ")", ";", "String", "reason", "=", "NO_ELEMENT_FOUND", ";", "if", "(", "value", "==", "null",...
Asserts that the element's selected value equals the provided expected value. If the element isn't present or a select, this will constitute a failure, same as a mismatch. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param expectedValue the expected inp...
[ "Asserts", "that", "the", "element", "s", "selected", "value", "equals", "the", "provided", "expected", "value", ".", "If", "the", "element", "isn", "t", "present", "or", "a", "select", "this", "will", "constitute", "a", "failure", "same", "as", "a", "mism...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/check/azzert/AssertEquals.java#L225-L233
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/check/azzert/AssertEquals.java
AssertEquals.selectOptions
public void selectOptions(String... expectedOptions) { String[] options = checkSelectOptions(expectedOptions, 0, 0); String reason = NO_ELEMENT_FOUND; if (options == null && getElement().is().present()) { reason = ELEMENT_NOT_SELECT; } assertNotNull(reason, options); ...
java
public void selectOptions(String... expectedOptions) { String[] options = checkSelectOptions(expectedOptions, 0, 0); String reason = NO_ELEMENT_FOUND; if (options == null && getElement().is().present()) { reason = ELEMENT_NOT_SELECT; } assertNotNull(reason, options); ...
[ "public", "void", "selectOptions", "(", "String", "...", "expectedOptions", ")", "{", "String", "[", "]", "options", "=", "checkSelectOptions", "(", "expectedOptions", ",", "0", ",", "0", ")", ";", "String", "reason", "=", "NO_ELEMENT_FOUND", ";", "if", "(",...
Asserts that the element's select options equal the provided expected options. If the element isn't present or a select, this will constitute a failure, same as a mismatch. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param expectedOptions the expected ...
[ "Asserts", "that", "the", "element", "s", "select", "options", "equal", "the", "provided", "expected", "options", ".", "If", "the", "element", "isn", "t", "present", "or", "a", "select", "this", "will", "constitute", "a", "failure", "same", "as", "a", "mis...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/check/azzert/AssertEquals.java#L243-L251
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/check/azzert/AssertEquals.java
AssertEquals.selectValues
public void selectValues(String... expectedValues) { String[] values = checkSelectValues(expectedValues, 0, 0); String reason = NO_ELEMENT_FOUND; if (values == null && getElement().is().present()) { reason = ELEMENT_NOT_SELECT; } assertNotNull(reason, values); ...
java
public void selectValues(String... expectedValues) { String[] values = checkSelectValues(expectedValues, 0, 0); String reason = NO_ELEMENT_FOUND; if (values == null && getElement().is().present()) { reason = ELEMENT_NOT_SELECT; } assertNotNull(reason, values); ...
[ "public", "void", "selectValues", "(", "String", "...", "expectedValues", ")", "{", "String", "[", "]", "values", "=", "checkSelectValues", "(", "expectedValues", ",", "0", ",", "0", ")", ";", "String", "reason", "=", "NO_ELEMENT_FOUND", ";", "if", "(", "v...
Asserts that the element's select values equal the provided expected values. If the element isn't present or a select, this will constitute a failure, same as a mismatch. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param expectedValues the expected inp...
[ "Asserts", "that", "the", "element", "s", "select", "values", "equal", "the", "provided", "expected", "values", ".", "If", "the", "element", "isn", "t", "present", "or", "a", "select", "this", "will", "constitute", "a", "failure", "same", "as", "a", "misma...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/check/azzert/AssertEquals.java#L261-L269
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/check/wait/WaitForEquals.java
WaitForEquals.text
public void text(int row, int col, String text) { text(row, col, text, defaultWait); }
java
public void text(int row, int col, String text) { text(row, col, text, defaultWait); }
[ "public", "void", "text", "(", "int", "row", ",", "int", "col", ",", "String", "text", ")", "{", "text", "(", "row", ",", "col", ",", "text", ",", "defaultWait", ")", ";", "}" ]
Waits for the element's text in a particular cell equals the provided expected text. If the element isn't present, or a table, this will constitute a failure, same as a mismatch. The default wait time will be used and if the element doesn't have the desired match count at that time, it will fail, and log the issue with...
[ "Waits", "for", "the", "element", "s", "text", "in", "a", "particular", "cell", "equals", "the", "provided", "expected", "text", ".", "If", "the", "element", "isn", "t", "present", "or", "a", "table", "this", "will", "constitute", "a", "failure", "same", ...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/check/wait/WaitForEquals.java#L177-L179
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/check/wait/WaitForEquals.java
WaitForEquals.clazz
public void clazz(String expectedClass, double seconds) { double end = System.currentTimeMillis() + (seconds * 1000); try { elementPresent(seconds); while (!(expectedClass == null ? element.get().attribute(CLASS) == null : expectedClass.equals(element.get().attribute(CLASS))) && ...
java
public void clazz(String expectedClass, double seconds) { double end = System.currentTimeMillis() + (seconds * 1000); try { elementPresent(seconds); while (!(expectedClass == null ? element.get().attribute(CLASS) == null : expectedClass.equals(element.get().attribute(CLASS))) && ...
[ "public", "void", "clazz", "(", "String", "expectedClass", ",", "double", "seconds", ")", "{", "double", "end", "=", "System", ".", "currentTimeMillis", "(", ")", "+", "(", "seconds", "*", "1000", ")", ";", "try", "{", "elementPresent", "(", "seconds", "...
Waits for the element's class equals the provided expected class. If the element isn't present, this will constitute a failure, same as a mismatch. The provided wait time will be used and if the element doesn't have the desired match count at that time, it will fail, and log the issue with a screenshot for traceability...
[ "Waits", "for", "the", "element", "s", "class", "equals", "the", "provided", "expected", "class", ".", "If", "the", "element", "isn", "t", "present", "this", "will", "constitute", "a", "failure", "same", "as", "a", "mismatch", ".", "The", "provided", "wait...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/check/wait/WaitForEquals.java#L313-L323
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/check/wait/WaitForEquals.java
WaitForEquals.attribute
public void attribute(String attribute, String expectedValue, double seconds) { double end = System.currentTimeMillis() + (seconds * 1000); try { elementPresent(seconds); while (!expectedValue.equals(element.get().attribute(attribute)) && System.currentTimeMillis() < end) ; ...
java
public void attribute(String attribute, String expectedValue, double seconds) { double end = System.currentTimeMillis() + (seconds * 1000); try { elementPresent(seconds); while (!expectedValue.equals(element.get().attribute(attribute)) && System.currentTimeMillis() < end) ; ...
[ "public", "void", "attribute", "(", "String", "attribute", ",", "String", "expectedValue", ",", "double", "seconds", ")", "{", "double", "end", "=", "System", ".", "currentTimeMillis", "(", ")", "+", "(", "seconds", "*", "1000", ")", ";", "try", "{", "el...
Waits for the element has an attribute with a value equals to the value provided. If the element isn't present, or the element does not have the attribute, this will constitute a failure, same as a mismatch. The provided wait time will be used and if the element doesn't have the desired match count at that time, it wil...
[ "Waits", "for", "the", "element", "has", "an", "attribute", "with", "a", "value", "equals", "to", "the", "value", "provided", ".", "If", "the", "element", "isn", "t", "present", "or", "the", "element", "does", "not", "have", "the", "attribute", "this", "...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/check/wait/WaitForEquals.java#L337-L347
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/check/wait/WaitForEquals.java
WaitForEquals.text
public void text(String expectedText, double seconds) { double end = System.currentTimeMillis() + (seconds * 1000); try { double timeTook = elementPresent(seconds); WebDriverWait wait = new WebDriverWait(element.getDriver(), (long) (seconds - timeTook), DEFAULT_POLLING_INTERVAL);...
java
public void text(String expectedText, double seconds) { double end = System.currentTimeMillis() + (seconds * 1000); try { double timeTook = elementPresent(seconds); WebDriverWait wait = new WebDriverWait(element.getDriver(), (long) (seconds - timeTook), DEFAULT_POLLING_INTERVAL);...
[ "public", "void", "text", "(", "String", "expectedText", ",", "double", "seconds", ")", "{", "double", "end", "=", "System", ".", "currentTimeMillis", "(", ")", "+", "(", "seconds", "*", "1000", ")", ";", "try", "{", "double", "timeTook", "=", "elementPr...
Waits for the element's text equals the provided expected text. If the element isn't present, this will constitute a failure, same as a mismatch. The provided wait time will be used and if the element doesn't have the desired match count at that time, it will fail, and log the issue with a screenshot for traceability a...
[ "Waits", "for", "the", "element", "s", "text", "equals", "the", "provided", "expected", "text", ".", "If", "the", "element", "isn", "t", "present", "this", "will", "constitute", "a", "failure", "same", "as", "a", "mismatch", ".", "The", "provided", "wait",...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/check/wait/WaitForEquals.java#L359-L370
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/check/wait/WaitForEquals.java
WaitForEquals.text
public void text(int row, int col, String expectedText, double seconds) { double end = System.currentTimeMillis() + (seconds * 1000); try { elementPresent(seconds); while (!element.get().tableCell(row, col).get().text().equals(expectedText) && System.currentTimeMillis() < end) ; ...
java
public void text(int row, int col, String expectedText, double seconds) { double end = System.currentTimeMillis() + (seconds * 1000); try { elementPresent(seconds); while (!element.get().tableCell(row, col).get().text().equals(expectedText) && System.currentTimeMillis() < end) ; ...
[ "public", "void", "text", "(", "int", "row", ",", "int", "col", ",", "String", "expectedText", ",", "double", "seconds", ")", "{", "double", "end", "=", "System", ".", "currentTimeMillis", "(", ")", "+", "(", "seconds", "*", "1000", ")", ";", "try", ...
Waits for the element's text in a particular cell equals the provided expected text. If the element isn't present, or a table, this will constitute a failure, same as a mismatch. The provided wait time will be used and if the element doesn't have the desired match count at that time, it will fail, and log the issue wit...
[ "Waits", "for", "the", "element", "s", "text", "in", "a", "particular", "cell", "equals", "the", "provided", "expected", "text", ".", "If", "the", "element", "isn", "t", "present", "or", "a", "table", "this", "will", "constitute", "a", "failure", "same", ...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/check/wait/WaitForEquals.java#L387-L397
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/check/wait/WaitForEquals.java
WaitForEquals.value
public void value(String expectedValue, double seconds) { double end = System.currentTimeMillis() + (seconds * 1000); try { double timeTook = elementPresent(seconds); WebDriverWait wait = new WebDriverWait(element.getDriver(), (long) (seconds - timeTook), DEFAULT_POLLING_INTERVAL...
java
public void value(String expectedValue, double seconds) { double end = System.currentTimeMillis() + (seconds * 1000); try { double timeTook = elementPresent(seconds); WebDriverWait wait = new WebDriverWait(element.getDriver(), (long) (seconds - timeTook), DEFAULT_POLLING_INTERVAL...
[ "public", "void", "value", "(", "String", "expectedValue", ",", "double", "seconds", ")", "{", "double", "end", "=", "System", ".", "currentTimeMillis", "(", ")", "+", "(", "seconds", "*", "1000", ")", ";", "try", "{", "double", "timeTook", "=", "element...
Waits for the element's value equals the provided expected value. If the element isn't present or an input, this will constitute a failure, same as a mismatch. The provided wait time will be used and if the element doesn't have the desired match count at that time, it will fail, and log the issue with a screenshot for ...
[ "Waits", "for", "the", "element", "s", "value", "equals", "the", "provided", "expected", "value", ".", "If", "the", "element", "isn", "t", "present", "or", "an", "input", "this", "will", "constitute", "a", "failure", "same", "as", "a", "mismatch", ".", "...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/check/wait/WaitForEquals.java#L410-L421
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/check/wait/WaitForEquals.java
WaitForEquals.selectedOption
public void selectedOption(String expectedText, double seconds) { double end = System.currentTimeMillis() + (seconds * 1000); try { elementPresent(seconds); if (!element.is().select()) { throw new TimeoutException(ELEMENT_NOT_SELECT); } whi...
java
public void selectedOption(String expectedText, double seconds) { double end = System.currentTimeMillis() + (seconds * 1000); try { elementPresent(seconds); if (!element.is().select()) { throw new TimeoutException(ELEMENT_NOT_SELECT); } whi...
[ "public", "void", "selectedOption", "(", "String", "expectedText", ",", "double", "seconds", ")", "{", "double", "end", "=", "System", ".", "currentTimeMillis", "(", ")", "+", "(", "seconds", "*", "1000", ")", ";", "try", "{", "elementPresent", "(", "secon...
Waits for the element's selected option equals the provided expected option. If the element isn't present or a select, this will constitute a failure, same as a mismatch. The provided wait time will be used and if the element doesn't have the desired match count at that time, it will fail, and log the issue with a scre...
[ "Waits", "for", "the", "element", "s", "selected", "option", "equals", "the", "provided", "expected", "option", ".", "If", "the", "element", "isn", "t", "present", "or", "a", "select", "this", "will", "constitute", "a", "failure", "same", "as", "a", "misma...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/check/wait/WaitForEquals.java#L434-L447
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/check/wait/WaitForEquals.java
WaitForEquals.selectedValue
public void selectedValue(String expectedValue, double seconds) { double end = System.currentTimeMillis() + (seconds * 1000); try { elementPresent(seconds); if (!element.is().select()) { throw new TimeoutException(ELEMENT_NOT_SELECT); } whi...
java
public void selectedValue(String expectedValue, double seconds) { double end = System.currentTimeMillis() + (seconds * 1000); try { elementPresent(seconds); if (!element.is().select()) { throw new TimeoutException(ELEMENT_NOT_SELECT); } whi...
[ "public", "void", "selectedValue", "(", "String", "expectedValue", ",", "double", "seconds", ")", "{", "double", "end", "=", "System", ".", "currentTimeMillis", "(", ")", "+", "(", "seconds", "*", "1000", ")", ";", "try", "{", "elementPresent", "(", "secon...
Waits for the element's selected value equals the provided expected value. If the element isn't present or a select, this will constitute a failure, same as a mismatch. The provided wait time will be used and if the element doesn't have the desired match count at that time, it will fail, and log the issue with a screen...
[ "Waits", "for", "the", "element", "s", "selected", "value", "equals", "the", "provided", "expected", "value", ".", "If", "the", "element", "isn", "t", "present", "or", "a", "select", "this", "will", "constitute", "a", "failure", "same", "as", "a", "mismatc...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/check/wait/WaitForEquals.java#L460-L473
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/check/wait/WaitForEquals.java
WaitForEquals.selectOptions
public void selectOptions(String[] expectedOptions, double seconds) { double end = System.currentTimeMillis() + (seconds * 1000); try { elementPresent(seconds); if (!element.is().select()) { throw new TimeoutException(ELEMENT_NOT_SELECT); } ...
java
public void selectOptions(String[] expectedOptions, double seconds) { double end = System.currentTimeMillis() + (seconds * 1000); try { elementPresent(seconds); if (!element.is().select()) { throw new TimeoutException(ELEMENT_NOT_SELECT); } ...
[ "public", "void", "selectOptions", "(", "String", "[", "]", "expectedOptions", ",", "double", "seconds", ")", "{", "double", "end", "=", "System", ".", "currentTimeMillis", "(", ")", "+", "(", "seconds", "*", "1000", ")", ";", "try", "{", "elementPresent",...
Waits for the element's select options equal the provided expected options. If the element isn't present or a select, this will constitute a failure, same as a mismatch. The provided wait time will be used and if the element doesn't have the desired match count at that time, it will fail, and log the issue with a scree...
[ "Waits", "for", "the", "element", "s", "select", "options", "equal", "the", "provided", "expected", "options", ".", "If", "the", "element", "isn", "t", "present", "or", "a", "select", "this", "will", "constitute", "a", "failure", "same", "as", "a", "mismat...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/check/wait/WaitForEquals.java#L486-L499
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/check/wait/WaitForEquals.java
WaitForEquals.selectValues
public void selectValues(String[] expectedValues, double seconds) { double end = System.currentTimeMillis() + (seconds * 1000); try { elementPresent(seconds); if (!element.is().select()) { throw new TimeoutException(ELEMENT_NOT_SELECT); } w...
java
public void selectValues(String[] expectedValues, double seconds) { double end = System.currentTimeMillis() + (seconds * 1000); try { elementPresent(seconds); if (!element.is().select()) { throw new TimeoutException(ELEMENT_NOT_SELECT); } w...
[ "public", "void", "selectValues", "(", "String", "[", "]", "expectedValues", ",", "double", "seconds", ")", "{", "double", "end", "=", "System", ".", "currentTimeMillis", "(", ")", "+", "(", "seconds", "*", "1000", ")", ";", "try", "{", "elementPresent", ...
Waits for the element's select values equal the provided expected values. If the element isn't present or a select, this will constitute a failure, same as a mismatch. The provided wait time will be used and if the element doesn't have the desired match count at that time, it will fail, and log the issue with a screens...
[ "Waits", "for", "the", "element", "s", "select", "values", "equal", "the", "provided", "expected", "values", ".", "If", "the", "element", "isn", "t", "present", "or", "a", "select", "this", "will", "constitute", "a", "failure", "same", "as", "a", "mismatch...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/check/wait/WaitForEquals.java#L512-L525
train
Coveros/selenified
src/main/java/com/coveros/selenified/Browser.java
Browser.lookup
public static BrowserName lookup(String b) throws InvalidBrowserException { for (BrowserName browser : BrowserName.values()) { if (browser.name().equalsIgnoreCase(b)) { return browser; } } throw new InvalidBrowserException("The selected browser " + b + " i...
java
public static BrowserName lookup(String b) throws InvalidBrowserException { for (BrowserName browser : BrowserName.values()) { if (browser.name().equalsIgnoreCase(b)) { return browser; } } throw new InvalidBrowserException("The selected browser " + b + " i...
[ "public", "static", "BrowserName", "lookup", "(", "String", "b", ")", "throws", "InvalidBrowserException", "{", "for", "(", "BrowserName", "browser", ":", "BrowserName", ".", "values", "(", ")", ")", "{", "if", "(", "browser", ".", "name", "(", ")", ".", ...
allows the browser selected to be passed in with a case insensitive name @param b - the string name of the browser @return Browser: the enum version of the browser @throws InvalidBrowserException If a browser that is not one specified in the Selenium.Browser class is used, this exception will be thrown
[ "allows", "the", "browser", "selected", "to", "be", "passed", "in", "with", "a", "case", "insensitive", "name" ]
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/Browser.java#L156-L163
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/check/azzert/AssertMatches.java
AssertMatches.text
public void text(String expectedPattern) { String text = checkText(expectedPattern, 0, 0); assertNotNull(NO_ELEMENT_FOUND, text); assertTrue("Text Mismatch: text of '" + text + DOES_NOT_MATCH_PATTERN + expectedPattern + "'", text.matches(expectedPattern)); }
java
public void text(String expectedPattern) { String text = checkText(expectedPattern, 0, 0); assertNotNull(NO_ELEMENT_FOUND, text); assertTrue("Text Mismatch: text of '" + text + DOES_NOT_MATCH_PATTERN + expectedPattern + "'", text.matches(expectedPattern)); }
[ "public", "void", "text", "(", "String", "expectedPattern", ")", "{", "String", "text", "=", "checkText", "(", "expectedPattern", ",", "0", ",", "0", ")", ";", "assertNotNull", "(", "NO_ELEMENT_FOUND", ",", "text", ")", ";", "assertTrue", "(", "\"Text Mismat...
Asserts that the element's text matches the regular expression pattern provided. If the element isn't present, this will constitute a failure, same as a mismatch. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param expectedPattern the expected pattern of...
[ "Asserts", "that", "the", "element", "s", "text", "matches", "the", "regular", "expression", "pattern", "provided", ".", "If", "the", "element", "isn", "t", "present", "this", "will", "constitute", "a", "failure", "same", "as", "a", "mismatch", ".", "This", ...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/check/azzert/AssertMatches.java#L85-L89
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/check/azzert/AssertMatches.java
AssertMatches.text
public void text(int row, int col, String pattern) { String text = checkText(row, col, pattern, 0, 0); assertNotNull(NO_ELEMENT_FOUND, text); assertTrue("Text Mismatch: text of '" + text + DOES_NOT_MATCH_PATTERN + pattern + "'", text.matches(pattern)); }
java
public void text(int row, int col, String pattern) { String text = checkText(row, col, pattern, 0, 0); assertNotNull(NO_ELEMENT_FOUND, text); assertTrue("Text Mismatch: text of '" + text + DOES_NOT_MATCH_PATTERN + pattern + "'", text.matches(pattern)); }
[ "public", "void", "text", "(", "int", "row", ",", "int", "col", ",", "String", "pattern", ")", "{", "String", "text", "=", "checkText", "(", "row", ",", "col", ",", "pattern", ",", "0", ",", "0", ")", ";", "assertNotNull", "(", "NO_ELEMENT_FOUND", ",...
Asserts that the element's pattern in a particular cell matches the regular expression pattern provided. If the element isn't present, or a table, this will constitute a failure, same as a mismatch. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param row...
[ "Asserts", "that", "the", "element", "s", "pattern", "in", "a", "particular", "cell", "matches", "the", "regular", "expression", "pattern", "provided", ".", "If", "the", "element", "isn", "t", "present", "or", "a", "table", "this", "will", "constitute", "a",...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/check/azzert/AssertMatches.java#L104-L108
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/check/azzert/AssertMatches.java
AssertMatches.value
@SuppressWarnings("squid:S2259") public void value(String expectedPattern) { String value = checkValue(expectedPattern, 0, 0); String reason = NO_ELEMENT_FOUND; if (value == null && getElement().is().present()) { reason = "Element not input"; } assertNotNull(reaso...
java
@SuppressWarnings("squid:S2259") public void value(String expectedPattern) { String value = checkValue(expectedPattern, 0, 0); String reason = NO_ELEMENT_FOUND; if (value == null && getElement().is().present()) { reason = "Element not input"; } assertNotNull(reaso...
[ "@", "SuppressWarnings", "(", "\"squid:S2259\"", ")", "public", "void", "value", "(", "String", "expectedPattern", ")", "{", "String", "value", "=", "checkValue", "(", "expectedPattern", ",", "0", ",", "0", ")", ";", "String", "reason", "=", "NO_ELEMENT_FOUND"...
Asserts that the element's value matches the regular expression pattern provided. If the element isn't present or an input, this will constitute a failure, same as a mismatch. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param expectedPattern the expect...
[ "Asserts", "that", "the", "element", "s", "value", "matches", "the", "regular", "expression", "pattern", "provided", ".", "If", "the", "element", "isn", "t", "present", "or", "an", "input", "this", "will", "constitute", "a", "failure", "same", "as", "a", "...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/check/azzert/AssertMatches.java#L118-L127
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/check/azzert/AssertMatches.java
AssertMatches.selectedOption
@SuppressWarnings("squid:S2259") public void selectedOption(String expectedPattern) { String selectedOption = checkSelectedOption(expectedPattern, 0, 0); String reason = NO_ELEMENT_FOUND; if (selectedOption == null && getElement().is().present()) { reason = ELEMENT_NOT_SELECT; ...
java
@SuppressWarnings("squid:S2259") public void selectedOption(String expectedPattern) { String selectedOption = checkSelectedOption(expectedPattern, 0, 0); String reason = NO_ELEMENT_FOUND; if (selectedOption == null && getElement().is().present()) { reason = ELEMENT_NOT_SELECT; ...
[ "@", "SuppressWarnings", "(", "\"squid:S2259\"", ")", "public", "void", "selectedOption", "(", "String", "expectedPattern", ")", "{", "String", "selectedOption", "=", "checkSelectedOption", "(", "expectedPattern", ",", "0", ",", "0", ")", ";", "String", "reason", ...
Asserts that the element's selected option matches the regular expression pattern provided. If the element isn't present or a select, this will constitute a failure, same as a mismatch. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param expectedPattern ...
[ "Asserts", "that", "the", "element", "s", "selected", "option", "matches", "the", "regular", "expression", "pattern", "provided", ".", "If", "the", "element", "isn", "t", "present", "or", "a", "select", "this", "will", "constitute", "a", "failure", "same", "...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/check/azzert/AssertMatches.java#L137-L147
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/check/azzert/AssertMatches.java
AssertMatches.selectedValue
@SuppressWarnings("squid:S2259") public void selectedValue(String expectedPattern) { String selectedValue = checkSelectedValue(expectedPattern, 0, 0); String reason = NO_ELEMENT_FOUND; if (selectedValue == null && getElement().is().present()) { reason = ELEMENT_NOT_SELECT; ...
java
@SuppressWarnings("squid:S2259") public void selectedValue(String expectedPattern) { String selectedValue = checkSelectedValue(expectedPattern, 0, 0); String reason = NO_ELEMENT_FOUND; if (selectedValue == null && getElement().is().present()) { reason = ELEMENT_NOT_SELECT; ...
[ "@", "SuppressWarnings", "(", "\"squid:S2259\"", ")", "public", "void", "selectedValue", "(", "String", "expectedPattern", ")", "{", "String", "selectedValue", "=", "checkSelectedValue", "(", "expectedPattern", ",", "0", ",", "0", ")", ";", "String", "reason", "...
Asserts that the element's selected value matches the regular expression pattern provided. If the element isn't present or a select, this will constitute a failure, same as a mismatch. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param expectedPattern ...
[ "Asserts", "that", "the", "element", "s", "selected", "value", "matches", "the", "regular", "expression", "pattern", "provided", ".", "If", "the", "element", "isn", "t", "present", "or", "a", "select", "this", "will", "constitute", "a", "failure", "same", "a...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/check/azzert/AssertMatches.java#L157-L167
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/Is.java
Is.isPopupPresent
private boolean isPopupPresent() { boolean isPresent = false; try { driver.switchTo().alert(); isPresent = true; } catch (NoAlertPresentException e) { log.info(e); } return isPresent; }
java
private boolean isPopupPresent() { boolean isPresent = false; try { driver.switchTo().alert(); isPresent = true; } catch (NoAlertPresentException e) { log.info(e); } return isPresent; }
[ "private", "boolean", "isPopupPresent", "(", ")", "{", "boolean", "isPresent", "=", "false", ";", "try", "{", "driver", ".", "switchTo", "(", ")", ".", "alert", "(", ")", ";", "isPresent", "=", "true", ";", "}", "catch", "(", "NoAlertPresentException", "...
Determines if any popup is present on the page @return Boolean: is a popup present on the page
[ "Determines", "if", "any", "popup", "is", "present", "on", "the", "page" ]
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/Is.java#L58-L67
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/Is.java
Is.cookiePresent
public boolean cookiePresent(String expectedCookieName) { boolean isCookiePresent = false; try { if (driver.manage().getCookieNamed(expectedCookieName) != null) { isCookiePresent = true; } return isCookiePresent; } catch (Exception e) { ...
java
public boolean cookiePresent(String expectedCookieName) { boolean isCookiePresent = false; try { if (driver.manage().getCookieNamed(expectedCookieName) != null) { isCookiePresent = true; } return isCookiePresent; } catch (Exception e) { ...
[ "public", "boolean", "cookiePresent", "(", "String", "expectedCookieName", ")", "{", "boolean", "isCookiePresent", "=", "false", ";", "try", "{", "if", "(", "driver", ".", "manage", "(", ")", ".", "getCookieNamed", "(", "expectedCookieName", ")", "!=", "null",...
Determines if a cookie exists in the application with the provided cookieName. @param expectedCookieName - the name of the cookie @return Boolean: if the cookie is present
[ "Determines", "if", "a", "cookie", "exists", "in", "the", "application", "with", "the", "provided", "cookieName", "." ]
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/Is.java#L114-L125
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/Is.java
Is.textPresentInSource
public boolean textPresentInSource(String expectedText) { try { return driver.getPageSource().contains(expectedText); } catch (Exception e) { log.info(e); return false; } }
java
public boolean textPresentInSource(String expectedText) { try { return driver.getPageSource().contains(expectedText); } catch (Exception e) { log.info(e); return false; } }
[ "public", "boolean", "textPresentInSource", "(", "String", "expectedText", ")", "{", "try", "{", "return", "driver", ".", "getPageSource", "(", ")", ".", "contains", "(", "expectedText", ")", ";", "}", "catch", "(", "Exception", "e", ")", "{", "log", ".", ...
Determines if the provides text is present in the current page source. @param expectedText - the text we are expecting to be present on the page @return Boolean: whether or not the text is present
[ "Determines", "if", "the", "provides", "text", "is", "present", "in", "the", "current", "page", "source", "." ]
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/Is.java#L149-L156
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/check/azzert/AssertExcludes.java
AssertExcludes.clazz
public void clazz(String unexpectedClass) { String clazz = checkClazz(unexpectedClass, 0, 0); assertNotNull(NO_ELEMENT_FOUND, clazz); assertFalse("Class Mismatch: class of '" + clazz + CONTAINS + unexpectedClass + "'", clazz.contains(unexpectedClass)); }
java
public void clazz(String unexpectedClass) { String clazz = checkClazz(unexpectedClass, 0, 0); assertNotNull(NO_ELEMENT_FOUND, clazz); assertFalse("Class Mismatch: class of '" + clazz + CONTAINS + unexpectedClass + "'", clazz.contains(unexpectedClass)); }
[ "public", "void", "clazz", "(", "String", "unexpectedClass", ")", "{", "String", "clazz", "=", "checkClazz", "(", "unexpectedClass", ",", "0", ",", "0", ")", ";", "assertNotNull", "(", "NO_ELEMENT_FOUND", ",", "clazz", ")", ";", "assertFalse", "(", "\"Class ...
Asserts that the element's class does not contain the provided expected class. If the element isn't present, this will constitute a failure, same as a mismatch. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param unexpectedClass - the unexpected class va...
[ "Asserts", "that", "the", "element", "s", "class", "does", "not", "contain", "the", "provided", "expected", "class", ".", "If", "the", "element", "isn", "t", "present", "this", "will", "constitute", "a", "failure", "same", "as", "a", "mismatch", ".", "This...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/check/azzert/AssertExcludes.java#L89-L93
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/check/azzert/AssertExcludes.java
AssertExcludes.attribute
public void attribute(String expectedAttribute) { Set<String> attributes = checkAttribute(expectedAttribute, 0, 0); assertNotNull(NO_ELEMENT_FOUND, attributes); assertFalse("Attribute found: element attributes of '" + String.join(",", attributes) + CONTAINS + expectedAttribute + ...
java
public void attribute(String expectedAttribute) { Set<String> attributes = checkAttribute(expectedAttribute, 0, 0); assertNotNull(NO_ELEMENT_FOUND, attributes); assertFalse("Attribute found: element attributes of '" + String.join(",", attributes) + CONTAINS + expectedAttribute + ...
[ "public", "void", "attribute", "(", "String", "expectedAttribute", ")", "{", "Set", "<", "String", ">", "attributes", "=", "checkAttribute", "(", "expectedAttribute", ",", "0", ",", "0", ")", ";", "assertNotNull", "(", "NO_ELEMENT_FOUND", ",", "attributes", ")...
Asserts that the element does not contain the provided expected attribute. If the element isn't present, this will constitute a failure, same as a mismatch. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param expectedAttribute - the attribute to check fo...
[ "Asserts", "that", "the", "element", "does", "not", "contain", "the", "provided", "expected", "attribute", ".", "If", "the", "element", "isn", "t", "present", "this", "will", "constitute", "a", "failure", "same", "as", "a", "mismatch", ".", "This", "informat...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/check/azzert/AssertExcludes.java#L103-L108
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/check/azzert/AssertExcludes.java
AssertExcludes.text
public void text(String expectedText) { String text = checkText(expectedText, 0, 0); assertNotNull(NO_ELEMENT_FOUND, text); assertFalse("Text found: element text of '" + text + CONTAINS + expectedText + "'", text.contains(expectedText)); }
java
public void text(String expectedText) { String text = checkText(expectedText, 0, 0); assertNotNull(NO_ELEMENT_FOUND, text); assertFalse("Text found: element text of '" + text + CONTAINS + expectedText + "'", text.contains(expectedText)); }
[ "public", "void", "text", "(", "String", "expectedText", ")", "{", "String", "text", "=", "checkText", "(", "expectedText", ",", "0", ",", "0", ")", ";", "assertNotNull", "(", "NO_ELEMENT_FOUND", ",", "text", ")", ";", "assertFalse", "(", "\"Text found: elem...
Asserts that the element's text does not contain the provided expected text. If the element isn't present, this will constitute a failure, same as a mismatch. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param expectedText the expected text of the eleme...
[ "Asserts", "that", "the", "element", "s", "text", "does", "not", "contain", "the", "provided", "expected", "text", ".", "If", "the", "element", "isn", "t", "present", "this", "will", "constitute", "a", "failure", "same", "as", "a", "mismatch", ".", "This",...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/check/azzert/AssertExcludes.java#L118-L122
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/check/azzert/AssertExcludes.java
AssertExcludes.value
@SuppressWarnings("squid:S2259") public void value(String expectedValue) { String value = checkValue(expectedValue, 0, 0); String reason = NO_ELEMENT_FOUND; if (value == null && getElement().is().present()) { reason = "Element not input"; } assertNotNull(reason, v...
java
@SuppressWarnings("squid:S2259") public void value(String expectedValue) { String value = checkValue(expectedValue, 0, 0); String reason = NO_ELEMENT_FOUND; if (value == null && getElement().is().present()) { reason = "Element not input"; } assertNotNull(reason, v...
[ "@", "SuppressWarnings", "(", "\"squid:S2259\"", ")", "public", "void", "value", "(", "String", "expectedValue", ")", "{", "String", "value", "=", "checkValue", "(", "expectedValue", ",", "0", ",", "0", ")", ";", "String", "reason", "=", "NO_ELEMENT_FOUND", ...
Asserts that the element's value does not contain the provided expected value. If the element isn't present or an input, this will constitute a failure, same as a mismatch. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param expectedValue the expected va...
[ "Asserts", "that", "the", "element", "s", "value", "does", "not", "contain", "the", "provided", "expected", "value", ".", "If", "the", "element", "isn", "t", "present", "or", "an", "input", "this", "will", "constitute", "a", "failure", "same", "as", "a", ...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/check/azzert/AssertExcludes.java#L132-L141
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/check/azzert/AssertExcludes.java
AssertExcludes.selectValue
public void selectValue(String expectedValue) { String[] values = checkSelectValue(expectedValue, 0, 0); String reason = NO_ELEMENT_FOUND; if (values == null && getElement().is().present()) { reason = ELEMENT_NOT_SELECT; } assertNotNull(reason, values); assert...
java
public void selectValue(String expectedValue) { String[] values = checkSelectValue(expectedValue, 0, 0); String reason = NO_ELEMENT_FOUND; if (values == null && getElement().is().present()) { reason = ELEMENT_NOT_SELECT; } assertNotNull(reason, values); assert...
[ "public", "void", "selectValue", "(", "String", "expectedValue", ")", "{", "String", "[", "]", "values", "=", "checkSelectValue", "(", "expectedValue", ",", "0", ",", "0", ")", ";", "String", "reason", "=", "NO_ELEMENT_FOUND", ";", "if", "(", "values", "==...
Asserts that the element's options do not contain the provided expected value. If the element isn't present or a select, this will constitute a failure, same as a mismatch. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param expectedValue the unexpected ...
[ "Asserts", "that", "the", "element", "s", "options", "do", "not", "contain", "the", "provided", "expected", "value", ".", "If", "the", "element", "isn", "t", "present", "or", "a", "select", "this", "will", "constitute", "a", "failure", "same", "as", "a", ...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/check/azzert/AssertExcludes.java#L170-L179
train
Coveros/selenified
src/main/java/com/coveros/selenified/services/Assert.java
Assert.contains
@Override public void contains(Map<String, Object> expectedPairs) { assertTrue("Expected to find " + Reporter.formatKeyPair(expectedPairs), checkContains(expectedPairs)); }
java
@Override public void contains(Map<String, Object> expectedPairs) { assertTrue("Expected to find " + Reporter.formatKeyPair(expectedPairs), checkContains(expectedPairs)); }
[ "@", "Override", "public", "void", "contains", "(", "Map", "<", "String", ",", "Object", ">", "expectedPairs", ")", "{", "assertTrue", "(", "\"Expected to find \"", "+", "Reporter", ".", "formatKeyPair", "(", "expectedPairs", ")", ",", "checkContains", "(", "e...
Asserts the actual response json payload contains each of the pair values provided, and writes that to the output file. If this fails, the code will immediately exit, and record the error. @param expectedPairs a hashmap with string key value pairs expected in the json response
[ "Asserts", "the", "actual", "response", "json", "payload", "contains", "each", "of", "the", "pair", "values", "provided", "and", "writes", "that", "to", "the", "output", "file", ".", "If", "this", "fails", "the", "code", "will", "immediately", "exit", "and",...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/services/Assert.java#L146-L149
train
Coveros/selenified
src/main/java/com/coveros/selenified/services/Assert.java
Assert.contains
@Override public void contains(JsonElement expectedJson) { assertTrue("Expected to find " + GSON.toJson(expectedJson), checkContains(expectedJson)); }
java
@Override public void contains(JsonElement expectedJson) { assertTrue("Expected to find " + GSON.toJson(expectedJson), checkContains(expectedJson)); }
[ "@", "Override", "public", "void", "contains", "(", "JsonElement", "expectedJson", ")", "{", "assertTrue", "(", "\"Expected to find \"", "+", "GSON", ".", "toJson", "(", "expectedJson", ")", ",", "checkContains", "(", "expectedJson", ")", ")", ";", "}" ]
Asserts the actual response json payload contains to the expected json element, and writes that out to the output file. If this fails, the code will immediately exit, and record the error. @param expectedJson - the expected response json array
[ "Asserts", "the", "actual", "response", "json", "payload", "contains", "to", "the", "expected", "json", "element", "and", "writes", "that", "out", "to", "the", "output", "file", ".", "If", "this", "fails", "the", "code", "will", "immediately", "exit", "and",...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/services/Assert.java#L158-L161
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/App.java
App.newElement
public Element newElement(Locator type, String locator) { return new Element(driver, reporter, type, locator); }
java
public Element newElement(Locator type, String locator) { return new Element(driver, reporter, type, locator); }
[ "public", "Element", "newElement", "(", "Locator", "type", ",", "String", "locator", ")", "{", "return", "new", "Element", "(", "driver", ",", "reporter", ",", "type", ",", "locator", ")", ";", "}" ]
setups a new element which is located on the page @param type - the locator type e.g. Locator.id, Locator.xpath @param locator - the locator string e.g. login, //input[@id='login'] @return Element: a page element to interact with
[ "setups", "a", "new", "element", "which", "is", "located", "on", "the", "page" ]
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/App.java#L135-L137
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/App.java
App.wait
public void wait(double seconds) { String action = "Wait " + seconds + SECONDS; String expected = WAITED + seconds + SECONDS; try { Thread.sleep((long) (seconds * 1000)); } catch (InterruptedException e) { log.warn(e); reporter.fail(action, expected, "...
java
public void wait(double seconds) { String action = "Wait " + seconds + SECONDS; String expected = WAITED + seconds + SECONDS; try { Thread.sleep((long) (seconds * 1000)); } catch (InterruptedException e) { log.warn(e); reporter.fail(action, expected, "...
[ "public", "void", "wait", "(", "double", "seconds", ")", "{", "String", "action", "=", "\"Wait \"", "+", "seconds", "+", "SECONDS", ";", "String", "expected", "=", "WAITED", "+", "seconds", "+", "SECONDS", ";", "try", "{", "Thread", ".", "sleep", "(", ...
Pauses the test for a set amount of time @param seconds - the number of seconds to wait
[ "Pauses", "the", "test", "for", "a", "set", "amount", "of", "time" ]
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/App.java#L300-L312
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/App.java
App.goToURL
public void goToURL(String url) { String action = "Loading " + url; String expected = "Loaded " + url; double start = System.currentTimeMillis(); try { driver.get(url); } catch (Exception e) { log.warn(e); reporter.fail(action, expected, "Fail ...
java
public void goToURL(String url) { String action = "Loading " + url; String expected = "Loaded " + url; double start = System.currentTimeMillis(); try { driver.get(url); } catch (Exception e) { log.warn(e); reporter.fail(action, expected, "Fail ...
[ "public", "void", "goToURL", "(", "String", "url", ")", "{", "String", "action", "=", "\"Loading \"", "+", "url", ";", "String", "expected", "=", "\"Loaded \"", "+", "url", ";", "double", "start", "=", "System", ".", "currentTimeMillis", "(", ")", ";", "...
Navigates to a new url @param url - the URL to navigate to
[ "Navigates", "to", "a", "new", "url" ]
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/App.java#L319-L334
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/App.java
App.takeScreenshot
public void takeScreenshot(String imageName) { if (browser.getName() == BrowserName.HTMLUNIT) { return; } try { // take a screenshot File srcFile; if (Property.isHubSet()) { WebDriver augemented = new Augmenter().augment(driver); ...
java
public void takeScreenshot(String imageName) { if (browser.getName() == BrowserName.HTMLUNIT) { return; } try { // take a screenshot File srcFile; if (Property.isHubSet()) { WebDriver augemented = new Augmenter().augment(driver); ...
[ "public", "void", "takeScreenshot", "(", "String", "imageName", ")", "{", "if", "(", "browser", ".", "getName", "(", ")", "==", "BrowserName", ".", "HTMLUNIT", ")", "{", "return", ";", "}", "try", "{", "// take a screenshot", "File", "srcFile", ";", "if", ...
Takes a full screenshot of the entire page @param imageName - the name of the image typically generated via functions from TestOutput.generateImageName
[ "Takes", "a", "full", "screenshot", "of", "the", "entire", "page" ]
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/App.java#L342-L360
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/App.java
App.goBack
public void goBack() { String action = "Going back one page"; String expected = "Previous page from browser history is loaded"; try { driver.navigate().back(); } catch (Exception e) { reporter.fail(action, expected, "Browser was unable to go back one page. " + e.g...
java
public void goBack() { String action = "Going back one page"; String expected = "Previous page from browser history is loaded"; try { driver.navigate().back(); } catch (Exception e) { reporter.fail(action, expected, "Browser was unable to go back one page. " + e.g...
[ "public", "void", "goBack", "(", ")", "{", "String", "action", "=", "\"Going back one page\"", ";", "String", "expected", "=", "\"Previous page from browser history is loaded\"", ";", "try", "{", "driver", ".", "navigate", "(", ")", ".", "back", "(", ")", ";", ...
Go back one page in the current test's browser history
[ "Go", "back", "one", "page", "in", "the", "current", "test", "s", "browser", "history" ]
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/App.java#L365-L376
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/App.java
App.setCookie
public void setCookie(Cookie cookie) { String domain = cookie.getDomain(); Date expiry = cookie.getExpiry(); String name = cookie.getName(); String path = cookie.getPath(); String value = cookie.getValue(); String action = "Setting up cookie with attributes:<div><table><...
java
public void setCookie(Cookie cookie) { String domain = cookie.getDomain(); Date expiry = cookie.getExpiry(); String name = cookie.getName(); String path = cookie.getPath(); String value = cookie.getValue(); String action = "Setting up cookie with attributes:<div><table><...
[ "public", "void", "setCookie", "(", "Cookie", "cookie", ")", "{", "String", "domain", "=", "cookie", ".", "getDomain", "(", ")", ";", "Date", "expiry", "=", "cookie", ".", "getExpiry", "(", ")", ";", "String", "name", "=", "cookie", ".", "getName", "("...
Adds a cookie to the application for this particular test @param cookie - the details of the cookie to set
[ "Adds", "a", "cookie", "to", "the", "application", "for", "this", "particular", "test" ]
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/App.java#L436-L456
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/App.java
App.deleteCookie
public void deleteCookie(String cookieName) { String action = "Deleting cookie <i>" + cookieName + "</i>"; String expected = "Cookie <i>" + cookieName + "</i> is removed"; try { Cookie cookie = driver.manage().getCookieNamed(cookieName); if (cookie == null) { ...
java
public void deleteCookie(String cookieName) { String action = "Deleting cookie <i>" + cookieName + "</i>"; String expected = "Cookie <i>" + cookieName + "</i> is removed"; try { Cookie cookie = driver.manage().getCookieNamed(cookieName); if (cookie == null) { ...
[ "public", "void", "deleteCookie", "(", "String", "cookieName", ")", "{", "String", "action", "=", "\"Deleting cookie <i>\"", "+", "cookieName", "+", "\"</i>\"", ";", "String", "expected", "=", "\"Cookie <i>\"", "+", "cookieName", "+", "\"</i> is removed\"", ";", "...
Deletes a stored cookie, indicated by the cookieName for this particular test. If the cookie by the provided name isn't present, than an error will be logged and recorded @param cookieName - the name of the cookie to delete
[ "Deletes", "a", "stored", "cookie", "indicated", "by", "the", "cookieName", "for", "this", "particular", "test", ".", "If", "the", "cookie", "by", "the", "provided", "name", "isn", "t", "present", "than", "an", "error", "will", "be", "logged", "and", "reco...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/App.java#L465-L482
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/App.java
App.deleteAllCookies
public void deleteAllCookies() { String action = "Deleting all cookies"; String expected = "All cookies are removed"; try { driver.manage().deleteAllCookies(); } catch (Exception e) { reporter.fail(action, expected, "Unable to remove all cookies. " + e.getMessage(...
java
public void deleteAllCookies() { String action = "Deleting all cookies"; String expected = "All cookies are removed"; try { driver.manage().deleteAllCookies(); } catch (Exception e) { reporter.fail(action, expected, "Unable to remove all cookies. " + e.getMessage(...
[ "public", "void", "deleteAllCookies", "(", ")", "{", "String", "action", "=", "\"Deleting all cookies\"", ";", "String", "expected", "=", "\"All cookies are removed\"", ";", "try", "{", "driver", ".", "manage", "(", ")", ".", "deleteAllCookies", "(", ")", ";", ...
Delete all stored cookies for this particular test
[ "Delete", "all", "stored", "cookies", "for", "this", "particular", "test" ]
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/App.java#L488-L499
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/App.java
App.resize
public void resize(int width, int height) { String action = "Resizing browser to " + width + " x " + height; String expected = "Browser is resized to " + width + " x " + height; try { Dimension dimension = new Dimension(width, height); driver.manage().window().setSize(dim...
java
public void resize(int width, int height) { String action = "Resizing browser to " + width + " x " + height; String expected = "Browser is resized to " + width + " x " + height; try { Dimension dimension = new Dimension(width, height); driver.manage().window().setSize(dim...
[ "public", "void", "resize", "(", "int", "width", ",", "int", "height", ")", "{", "String", "action", "=", "\"Resizing browser to \"", "+", "width", "+", "\" x \"", "+", "height", ";", "String", "expected", "=", "\"Browser is resized to \"", "+", "width", "+", ...
Resizes the current window to the specified size @param width - the desired width of the browser @param height - the desired height of the browser
[ "Resizes", "the", "current", "window", "to", "the", "specified", "size" ]
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/App.java#L524-L536
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/App.java
App.scroll
public void scroll(int desiredPosition) { String action = "Scrolling page by " + desiredPosition + " pixels"; String expected = "Page is scrolled down " + desiredPosition + " pixels"; Long newPosition; try { JavascriptExecutor jse = (JavascriptExecutor) driver; Lo...
java
public void scroll(int desiredPosition) { String action = "Scrolling page by " + desiredPosition + " pixels"; String expected = "Page is scrolled down " + desiredPosition + " pixels"; Long newPosition; try { JavascriptExecutor jse = (JavascriptExecutor) driver; Lo...
[ "public", "void", "scroll", "(", "int", "desiredPosition", ")", "{", "String", "action", "=", "\"Scrolling page by \"", "+", "desiredPosition", "+", "\" pixels\"", ";", "String", "expected", "=", "\"Page is scrolled down \"", "+", "desiredPosition", "+", "\" pixels\""...
An custom script to scroll to a given position on the page, using javascript. If the browser being used doesn't support javascript, or the page isn't long enough to support scrolling to the desired position, than an error will be logged and recorded @param desiredPosition - the position on the page to scroll to
[ "An", "custom", "script", "to", "scroll", "to", "a", "given", "position", "on", "the", "page", "using", "javascript", ".", "If", "the", "browser", "being", "used", "doesn", "t", "support", "javascript", "or", "the", "page", "isn", "t", "long", "enough", ...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/App.java#L546-L570
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/App.java
App.openNewWindow
public void openNewWindow(String url) { String action = "Opening new window to url " + url; String expected = "New window is opened to url " + url; try { JavascriptExecutor jse = (JavascriptExecutor) driver; jse.executeScript("window.open('" + url + "','_blank');"); ...
java
public void openNewWindow(String url) { String action = "Opening new window to url " + url; String expected = "New window is opened to url " + url; try { JavascriptExecutor jse = (JavascriptExecutor) driver; jse.executeScript("window.open('" + url + "','_blank');"); ...
[ "public", "void", "openNewWindow", "(", "String", "url", ")", "{", "String", "action", "=", "\"Opening new window to url \"", "+", "url", ";", "String", "expected", "=", "\"New window is opened to url \"", "+", "url", ";", "try", "{", "JavascriptExecutor", "jse", ...
Opens a new tab, and have it selected. The page provided will be loaded @param url - the url to load once the new tab is opened and selected
[ "Opens", "a", "new", "tab", "and", "have", "it", "selected", ".", "The", "page", "provided", "will", "be", "loaded" ]
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/App.java#L577-L596
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/App.java
App.switchToNewWindow
public void switchToNewWindow() { String action = "Switching to the new window"; String expected = "New window is available and selected"; try { parentWindow = driver.getWindowHandle(); for (String winHandle : driver.getWindowHandles()) { driver.switchTo()...
java
public void switchToNewWindow() { String action = "Switching to the new window"; String expected = "New window is available and selected"; try { parentWindow = driver.getWindowHandle(); for (String winHandle : driver.getWindowHandles()) { driver.switchTo()...
[ "public", "void", "switchToNewWindow", "(", ")", "{", "String", "action", "=", "\"Switching to the new window\"", ";", "String", "expected", "=", "\"New window is available and selected\"", ";", "try", "{", "parentWindow", "=", "driver", ".", "getWindowHandle", "(", "...
Switches to the next window. This is an alternative to switchNextTab or switchPreviousTab, as this works better for some systems and environments that others.
[ "Switches", "to", "the", "next", "window", ".", "This", "is", "an", "alternative", "to", "switchNextTab", "or", "switchPreviousTab", "as", "this", "works", "better", "for", "some", "systems", "and", "environments", "that", "others", "." ]
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/App.java#L603-L617
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/App.java
App.switchToParentWindow
public void switchToParentWindow() { String action = "Switching back to parent window"; String expected = "Parent window is available and selected"; try { driver.switchTo().window(parentWindow); } catch (Exception e) { reporter.fail(action, expected, "Parent windo...
java
public void switchToParentWindow() { String action = "Switching back to parent window"; String expected = "Parent window is available and selected"; try { driver.switchTo().window(parentWindow); } catch (Exception e) { reporter.fail(action, expected, "Parent windo...
[ "public", "void", "switchToParentWindow", "(", ")", "{", "String", "action", "=", "\"Switching back to parent window\"", ";", "String", "expected", "=", "\"Parent window is available and selected\"", ";", "try", "{", "driver", ".", "switchTo", "(", ")", ".", "window",...
Switches to the originally opened window. This is an alternative to switchNextTab or switchPreviousTab, as this works better for some systems and environments that others.
[ "Switches", "to", "the", "originally", "opened", "window", ".", "This", "is", "an", "alternative", "to", "switchNextTab", "or", "switchPreviousTab", "as", "this", "works", "better", "for", "some", "systems", "and", "environments", "that", "others", "." ]
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/App.java#L624-L635
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/App.java
App.closeCurrentWindow
public void closeCurrentWindow() { String action = "Closing currently selected window"; String expected = "Current window is closed"; try { driver.close(); } catch (Exception e) { reporter.fail(action, expected, "Current window was unable to be closed. " + e.getMe...
java
public void closeCurrentWindow() { String action = "Closing currently selected window"; String expected = "Current window is closed"; try { driver.close(); } catch (Exception e) { reporter.fail(action, expected, "Current window was unable to be closed. " + e.getMe...
[ "public", "void", "closeCurrentWindow", "(", ")", "{", "String", "action", "=", "\"Closing currently selected window\"", ";", "String", "expected", "=", "\"Current window is closed\"", ";", "try", "{", "driver", ".", "close", "(", ")", ";", "}", "catch", "(", "E...
Close the currently selected window. After this window is closed, ensure that focus is shifted to the next window using switchToNewWindow or switchToParentWindow methods. This is an alternative to closeTab, as this works better for some systems and environments that others.
[ "Close", "the", "currently", "selected", "window", ".", "After", "this", "window", "is", "closed", "ensure", "that", "focus", "is", "shifted", "to", "the", "next", "window", "using", "switchToNewWindow", "or", "switchToParentWindow", "methods", ".", "This", "is"...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/App.java#L643-L654
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/App.java
App.selectMainWindow
public void selectMainWindow() { String action = "Switching to main window"; String expected = "Main window is selected"; try { driver.switchTo().defaultContent(); } catch (Exception e) { reporter.fail(action, expected, "Main window was not selected. " + e.getMess...
java
public void selectMainWindow() { String action = "Switching to main window"; String expected = "Main window is selected"; try { driver.switchTo().defaultContent(); } catch (Exception e) { reporter.fail(action, expected, "Main window was not selected. " + e.getMess...
[ "public", "void", "selectMainWindow", "(", ")", "{", "String", "action", "=", "\"Switching to main window\"", ";", "String", "expected", "=", "\"Main window is selected\"", ";", "try", "{", "driver", ".", "switchTo", "(", ")", ".", "defaultContent", "(", ")", ";...
Select the main window. Used for returning to the main content after selecting a frame. If there are nested frames, the main content will be selected, not the next frame in the parent child relationship
[ "Select", "the", "main", "window", ".", "Used", "for", "returning", "to", "the", "main", "content", "after", "selecting", "a", "frame", ".", "If", "there", "are", "nested", "frames", "the", "main", "content", "will", "be", "selected", "not", "the", "next",...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/App.java#L661-L672
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/App.java
App.selectParentFrame
public void selectParentFrame() { String action = "Switching to parent frame"; String expected = "Parent frame is selected"; try { driver.switchTo().parentFrame(); } catch (Exception e) { reporter.fail(action, expected, "Parent frame was not selected. " + e.getMes...
java
public void selectParentFrame() { String action = "Switching to parent frame"; String expected = "Parent frame is selected"; try { driver.switchTo().parentFrame(); } catch (Exception e) { reporter.fail(action, expected, "Parent frame was not selected. " + e.getMes...
[ "public", "void", "selectParentFrame", "(", ")", "{", "String", "action", "=", "\"Switching to parent frame\"", ";", "String", "expected", "=", "\"Parent frame is selected\"", ";", "try", "{", "driver", ".", "switchTo", "(", ")", ".", "parentFrame", "(", ")", ";...
Select the parent frame. Used for returning to the next frame up after selecting a frame. If there are nested frames, the main content won't be selected, however the next frame in the parent child relationship will be
[ "Select", "the", "parent", "frame", ".", "Used", "for", "returning", "to", "the", "next", "frame", "up", "after", "selecting", "a", "frame", ".", "If", "there", "are", "nested", "frames", "the", "main", "content", "won", "t", "be", "selected", "however", ...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/App.java#L679-L690
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/App.java
App.acceptCertificate
public void acceptCertificate() { String action = "Clicking override link to accept ssl certificate"; String result = "Override link clicked"; //for IE and Edge if (browser.getName() == BrowserName.INTERNETEXPLORER || browser.getName() == BrowserName.EDGE) { Element overrideL...
java
public void acceptCertificate() { String action = "Clicking override link to accept ssl certificate"; String result = "Override link clicked"; //for IE and Edge if (browser.getName() == BrowserName.INTERNETEXPLORER || browser.getName() == BrowserName.EDGE) { Element overrideL...
[ "public", "void", "acceptCertificate", "(", ")", "{", "String", "action", "=", "\"Clicking override link to accept ssl certificate\"", ";", "String", "result", "=", "\"Override link clicked\"", ";", "//for IE and Edge", "if", "(", "browser", ".", "getName", "(", ")", ...
Safari, Edge and IE don't recognize the allowInsecureCert capability. As a result, an alternative method is provided in order to 'manually' accept the problematic certificate
[ "Safari", "Edge", "and", "IE", "don", "t", "recognize", "the", "allowInsecureCert", "capability", ".", "As", "a", "result", "an", "alternative", "method", "is", "provided", "in", "order", "to", "manually", "accept", "the", "problematic", "certificate" ]
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/App.java#L736-L756
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/App.java
App.isNotConfirmation
private boolean isNotConfirmation(String action, String expected) { // wait for element to be present if (!is.confirmationPresent()) { waitFor.confirmationPresent(); } if (!is.confirmationPresent()) { reporter.fail(action, expected, "Unable to click confirmation a...
java
private boolean isNotConfirmation(String action, String expected) { // wait for element to be present if (!is.confirmationPresent()) { waitFor.confirmationPresent(); } if (!is.confirmationPresent()) { reporter.fail(action, expected, "Unable to click confirmation a...
[ "private", "boolean", "isNotConfirmation", "(", "String", "action", ",", "String", "expected", ")", "{", "// wait for element to be present", "if", "(", "!", "is", ".", "confirmationPresent", "(", ")", ")", "{", "waitFor", ".", "confirmationPresent", "(", ")", "...
Determines if a confirmation is present or not, and can be interacted with. If it's not present, an indication that the confirmation can't be clicked on is written to the log file @param action - the action occurring @param expected - the expected result @return Boolean: is a confirmation actually present or not.
[ "Determines", "if", "a", "confirmation", "is", "present", "or", "not", "and", "can", "be", "interacted", "with", ".", "If", "it", "s", "not", "present", "an", "indication", "that", "the", "confirmation", "can", "t", "be", "clicked", "on", "is", "written", ...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/App.java#L809-L819
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/App.java
App.isNotPrompt
private boolean isNotPrompt(String action, String expected, String perform) { // wait for element to be present if (!is.promptPresent()) { waitFor.promptPresent(); } if (!is.promptPresent()) { reporter.fail(action, expected, "Unable to " + perform + " prompt as it...
java
private boolean isNotPrompt(String action, String expected, String perform) { // wait for element to be present if (!is.promptPresent()) { waitFor.promptPresent(); } if (!is.promptPresent()) { reporter.fail(action, expected, "Unable to " + perform + " prompt as it...
[ "private", "boolean", "isNotPrompt", "(", "String", "action", ",", "String", "expected", ",", "String", "perform", ")", "{", "// wait for element to be present", "if", "(", "!", "is", ".", "promptPresent", "(", ")", ")", "{", "waitFor", ".", "promptPresent", "...
Determines if a prompt is present or not, and can be interacted with. If it's not present, an indication that the confirmation can't be clicked on is written to the log file @param action - the action occurring @param expected - the expected result @param perform - the action occurring to the prompt @return Boolean...
[ "Determines", "if", "a", "prompt", "is", "present", "or", "not", "and", "can", "be", "interacted", "with", ".", "If", "it", "s", "not", "present", "an", "indication", "that", "the", "confirmation", "can", "t", "be", "clicked", "on", "is", "written", "to"...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/App.java#L831-L841
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/App.java
App.typeIntoPrompt
public void typeIntoPrompt(String text) { String action = "Typing text '" + text + "' into prompt"; String expected = "Prompt is present and enabled to have text " + text + " typed in"; if (isNotPrompt(action, expected, "type into")) { return; } try { Aler...
java
public void typeIntoPrompt(String text) { String action = "Typing text '" + text + "' into prompt"; String expected = "Prompt is present and enabled to have text " + text + " typed in"; if (isNotPrompt(action, expected, "type into")) { return; } try { Aler...
[ "public", "void", "typeIntoPrompt", "(", "String", "text", ")", "{", "String", "action", "=", "\"Typing text '\"", "+", "text", "+", "\"' into prompt\"", ";", "String", "expected", "=", "\"Prompt is present and enabled to have text \"", "+", "text", "+", "\" typed in\...
Type text into a prompt box @param text - the text to type into the prompt
[ "Type", "text", "into", "a", "prompt", "box" ]
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/App.java#L913-L928
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/Assert.java
Assert.titleMatches
@Override public void titleMatches(String expectedTitlePattern) { String title = checkTitleMatches(expectedTitlePattern, 0, 0); assertTrue("Title Mismatch: title of '" + title + DOES_NOT_MATCH_PATTERN + expectedTitlePattern + "'", title.matches(expectedTitlePattern)); }
java
@Override public void titleMatches(String expectedTitlePattern) { String title = checkTitleMatches(expectedTitlePattern, 0, 0); assertTrue("Title Mismatch: title of '" + title + DOES_NOT_MATCH_PATTERN + expectedTitlePattern + "'", title.matches(expectedTitlePattern)); }
[ "@", "Override", "public", "void", "titleMatches", "(", "String", "expectedTitlePattern", ")", "{", "String", "title", "=", "checkTitleMatches", "(", "expectedTitlePattern", ",", "0", ",", "0", ")", ";", "assertTrue", "(", "\"Title Mismatch: title of '\"", "+", "t...
Verifies the provided title matches the actual title of the current page the application is on. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param expectedTitlePattern the friendly name of the page
[ "Verifies", "the", "provided", "title", "matches", "the", "actual", "title", "of", "the", "current", "page", "the", "application", "is", "on", ".", "This", "information", "will", "be", "logged", "and", "recorded", "with", "a", "screenshot", "for", "traceabilit...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/Assert.java#L110-L114
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/Assert.java
Assert.alertMatches
@Override public void alertMatches(String expectedAlertPattern) { String alert = checkAlertMatches(expectedAlertPattern, 0, 0); assertTrue("Alert Text Mismatch: alert text of '" + alert + DOES_NOT_MATCH_PATTERN + expectedAlertPattern + "'", alert.matches(expectedAlertPattern)); }
java
@Override public void alertMatches(String expectedAlertPattern) { String alert = checkAlertMatches(expectedAlertPattern, 0, 0); assertTrue("Alert Text Mismatch: alert text of '" + alert + DOES_NOT_MATCH_PATTERN + expectedAlertPattern + "'", alert.matches(expectedAlertPattern)); }
[ "@", "Override", "public", "void", "alertMatches", "(", "String", "expectedAlertPattern", ")", "{", "String", "alert", "=", "checkAlertMatches", "(", "expectedAlertPattern", ",", "0", ",", "0", ")", ";", "assertTrue", "(", "\"Alert Text Mismatch: alert text of '\"", ...
Asserts that an alert present on the page has content matching the expected patten. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param expectedAlertPattern the expected text of the alert
[ "Asserts", "that", "an", "alert", "present", "on", "the", "page", "has", "content", "matching", "the", "expected", "patten", ".", "This", "information", "will", "be", "logged", "and", "recorded", "with", "a", "screenshot", "for", "traceability", "and", "added"...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/Assert.java#L183-L187
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/Assert.java
Assert.confirmationMatches
@Override public void confirmationMatches(String expectedConfirmationPattern) { String confirmation = checkConfirmationMatches(expectedConfirmationPattern, 0, 0); assertTrue("Confirmation Text Mismatch: confirmation text of '" + confirmation + DOES_NOT_MATCH_PATTERN + expectedConfirmationPattern + "...
java
@Override public void confirmationMatches(String expectedConfirmationPattern) { String confirmation = checkConfirmationMatches(expectedConfirmationPattern, 0, 0); assertTrue("Confirmation Text Mismatch: confirmation text of '" + confirmation + DOES_NOT_MATCH_PATTERN + expectedConfirmationPattern + "...
[ "@", "Override", "public", "void", "confirmationMatches", "(", "String", "expectedConfirmationPattern", ")", "{", "String", "confirmation", "=", "checkConfirmationMatches", "(", "expectedConfirmationPattern", ",", "0", ",", "0", ")", ";", "assertTrue", "(", "\"Confirm...
Asserts that a confirmation present on the page has content matching the expected text. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param expectedConfirmationPattern the expected text of the confirmation
[ "Asserts", "that", "a", "confirmation", "present", "on", "the", "page", "has", "content", "matching", "the", "expected", "text", ".", "This", "information", "will", "be", "logged", "and", "recorded", "with", "a", "screenshot", "for", "traceability", "and", "ad...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/Assert.java#L228-L232
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/Assert.java
Assert.promptMatches
@Override public void promptMatches(String expectedPromptPattern) { String prompt = checkPromptMatches(expectedPromptPattern, 0, 0); assertTrue("Prompt Text Mismatch: prompt text of '" + prompt + DOES_NOT_MATCH_PATTERN + expectedPromptPattern + "'", prompt.matches(expectedPromptPattern)); }
java
@Override public void promptMatches(String expectedPromptPattern) { String prompt = checkPromptMatches(expectedPromptPattern, 0, 0); assertTrue("Prompt Text Mismatch: prompt text of '" + prompt + DOES_NOT_MATCH_PATTERN + expectedPromptPattern + "'", prompt.matches(expectedPromptPattern)); }
[ "@", "Override", "public", "void", "promptMatches", "(", "String", "expectedPromptPattern", ")", "{", "String", "prompt", "=", "checkPromptMatches", "(", "expectedPromptPattern", ",", "0", ",", "0", ")", ";", "assertTrue", "(", "\"Prompt Text Mismatch: prompt text of ...
Asserts that a prompt present on the page has content matching the expected text. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param expectedPromptPattern the expected text of the prompt
[ "Asserts", "that", "a", "prompt", "present", "on", "the", "page", "has", "content", "matching", "the", "expected", "text", ".", "This", "information", "will", "be", "logged", "and", "recorded", "with", "a", "screenshot", "for", "traceability", "and", "added", ...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/Assert.java#L273-L277
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/Assert.java
Assert.cookieEquals
@Override public void cookieEquals(String cookieName, String expectedCookieValue) { assertEquals("Cookie Value Mismatch", expectedCookieValue, checkCookieEquals(cookieName, expectedCookieValue, 0, 0)); }
java
@Override public void cookieEquals(String cookieName, String expectedCookieValue) { assertEquals("Cookie Value Mismatch", expectedCookieValue, checkCookieEquals(cookieName, expectedCookieValue, 0, 0)); }
[ "@", "Override", "public", "void", "cookieEquals", "(", "String", "cookieName", ",", "String", "expectedCookieValue", ")", "{", "assertEquals", "(", "\"Cookie Value Mismatch\"", ",", "expectedCookieValue", ",", "checkCookieEquals", "(", "cookieName", ",", "expectedCooki...
Asserts that a cookies with the provided name has a value equal to the expected value. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param cookieName the name of the cookie @param expectedCookieValue the expected value of the cookie
[ "Asserts", "that", "a", "cookies", "with", "the", "provided", "name", "has", "a", "value", "equal", "to", "the", "expected", "value", ".", "This", "information", "will", "be", "logged", "and", "recorded", "with", "a", "screenshot", "for", "traceability", "an...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/Assert.java#L315-L318
train
Coveros/selenified
src/main/java/com/coveros/selenified/application/Assert.java
Assert.cookieMatches
@Override public void cookieMatches(String cookieName, String expectedCookiePattern) { String cookie = checkCookieMatches(cookieName, expectedCookiePattern, 0, 0); assertTrue("Cookie Value Mismatch: cookie value of '" + cookie + DOES_NOT_MATCH_PATTERN + expectedCookiePattern + "'", cookie.matches(ex...
java
@Override public void cookieMatches(String cookieName, String expectedCookiePattern) { String cookie = checkCookieMatches(cookieName, expectedCookiePattern, 0, 0); assertTrue("Cookie Value Mismatch: cookie value of '" + cookie + DOES_NOT_MATCH_PATTERN + expectedCookiePattern + "'", cookie.matches(ex...
[ "@", "Override", "public", "void", "cookieMatches", "(", "String", "cookieName", ",", "String", "expectedCookiePattern", ")", "{", "String", "cookie", "=", "checkCookieMatches", "(", "cookieName", ",", "expectedCookiePattern", ",", "0", ",", "0", ")", ";", "asse...
Asserts that a cookies with the provided name has a value matching the expected pattern. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param cookieName the name of the cookie @param expectedCookiePattern the expected value of the cookie
[ "Asserts", "that", "a", "cookies", "with", "the", "provided", "name", "has", "a", "value", "matching", "the", "expected", "pattern", ".", "This", "information", "will", "be", "logged", "and", "recorded", "with", "a", "screenshot", "for", "traceability", "and",...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/application/Assert.java#L328-L332
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/check/azzert/AssertContains.java
AssertContains.clazz
public void clazz(String expectedClass) { String clazz = checkClazz(expectedClass, 0, 0); assertNotNull(NO_ELEMENT_FOUND, clazz); assertTrue("Class Mismatch: class of '" + clazz + DOES_NOT_CONTAIN + expectedClass + "'", clazz.contains(expectedClass)); }
java
public void clazz(String expectedClass) { String clazz = checkClazz(expectedClass, 0, 0); assertNotNull(NO_ELEMENT_FOUND, clazz); assertTrue("Class Mismatch: class of '" + clazz + DOES_NOT_CONTAIN + expectedClass + "'", clazz.contains(expectedClass)); }
[ "public", "void", "clazz", "(", "String", "expectedClass", ")", "{", "String", "clazz", "=", "checkClazz", "(", "expectedClass", ",", "0", ",", "0", ")", ";", "assertNotNull", "(", "NO_ELEMENT_FOUND", ",", "clazz", ")", ";", "assertTrue", "(", "\"Class Misma...
Asserts that the element's class contains the provided expected class. If the element isn't present, this will constitute a failure, same as a mismatch. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param expectedClass - the expected class value
[ "Asserts", "that", "the", "element", "s", "class", "contains", "the", "provided", "expected", "class", ".", "If", "the", "element", "isn", "t", "present", "this", "will", "constitute", "a", "failure", "same", "as", "a", "mismatch", ".", "This", "information"...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/check/azzert/AssertContains.java#L87-L91
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/check/azzert/AssertContains.java
AssertContains.attribute
public void attribute(String expectedAttribute) { Set<String> attributes = checkAttribute(expectedAttribute, 0, 0); assertNotNull(NO_ELEMENT_FOUND, attributes); assertTrue("Attribute not found: element attributes of '" + String.join(",", attributes) + DOES_NOT_CONTAIN + expectedA...
java
public void attribute(String expectedAttribute) { Set<String> attributes = checkAttribute(expectedAttribute, 0, 0); assertNotNull(NO_ELEMENT_FOUND, attributes); assertTrue("Attribute not found: element attributes of '" + String.join(",", attributes) + DOES_NOT_CONTAIN + expectedA...
[ "public", "void", "attribute", "(", "String", "expectedAttribute", ")", "{", "Set", "<", "String", ">", "attributes", "=", "checkAttribute", "(", "expectedAttribute", ",", "0", ",", "0", ")", ";", "assertNotNull", "(", "NO_ELEMENT_FOUND", ",", "attributes", ")...
Asserts that the element contains the provided expected attribute. If the element isn't present, this will constitute a failure, same as a mismatch. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param expectedAttribute - the attribute to check for
[ "Asserts", "that", "the", "element", "contains", "the", "provided", "expected", "attribute", ".", "If", "the", "element", "isn", "t", "present", "this", "will", "constitute", "a", "failure", "same", "as", "a", "mismatch", ".", "This", "information", "will", ...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/check/azzert/AssertContains.java#L101-L106
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/check/azzert/AssertContains.java
AssertContains.text
public void text(String expectedText) { String text = checkText(expectedText, 0, 0); assertNotNull(NO_ELEMENT_FOUND, text); assertTrue("Text not found: element text of '" + text + DOES_NOT_CONTAIN + expectedText + "'", text.contains(expectedText)); }
java
public void text(String expectedText) { String text = checkText(expectedText, 0, 0); assertNotNull(NO_ELEMENT_FOUND, text); assertTrue("Text not found: element text of '" + text + DOES_NOT_CONTAIN + expectedText + "'", text.contains(expectedText)); }
[ "public", "void", "text", "(", "String", "expectedText", ")", "{", "String", "text", "=", "checkText", "(", "expectedText", ",", "0", ",", "0", ")", ";", "assertNotNull", "(", "NO_ELEMENT_FOUND", ",", "text", ")", ";", "assertTrue", "(", "\"Text not found: e...
Asserts that the element's text contains the provided expected text. If the element isn't present, this will constitute a failure, same as a mismatch. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param expectedText the expected value of the element
[ "Asserts", "that", "the", "element", "s", "text", "contains", "the", "provided", "expected", "text", ".", "If", "the", "element", "isn", "t", "present", "this", "will", "constitute", "a", "failure", "same", "as", "a", "mismatch", ".", "This", "information", ...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/check/azzert/AssertContains.java#L116-L120
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/check/azzert/AssertContains.java
AssertContains.value
@SuppressWarnings("squid:S2259") public void value(String expectedValue) { String value = checkValue(expectedValue, 0, 0); String reason = NO_ELEMENT_FOUND; if (value == null && getElement().is().present()) { reason = "Element not input"; } assertNotNull(reason, v...
java
@SuppressWarnings("squid:S2259") public void value(String expectedValue) { String value = checkValue(expectedValue, 0, 0); String reason = NO_ELEMENT_FOUND; if (value == null && getElement().is().present()) { reason = "Element not input"; } assertNotNull(reason, v...
[ "@", "SuppressWarnings", "(", "\"squid:S2259\"", ")", "public", "void", "value", "(", "String", "expectedValue", ")", "{", "String", "value", "=", "checkValue", "(", "expectedValue", ",", "0", ",", "0", ")", ";", "String", "reason", "=", "NO_ELEMENT_FOUND", ...
Asserts that the element's value contains the provided expected value. If the element isn't present or an input, this will constitute a failure, same as a mismatch. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param expectedValue the expected value of t...
[ "Asserts", "that", "the", "element", "s", "value", "contains", "the", "provided", "expected", "value", ".", "If", "the", "element", "isn", "t", "present", "or", "an", "input", "this", "will", "constitute", "a", "failure", "same", "as", "a", "mismatch", "."...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/check/azzert/AssertContains.java#L130-L139
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/check/azzert/AssertContains.java
AssertContains.selectOption
public void selectOption(String expectedOption) { String[] options = checkSelectOption(expectedOption, 0, 0); String reason = NO_ELEMENT_FOUND; if (options == null && getElement().is().present()) { reason = ELEMENT_NOT_SELECT; } assertNotNull(reason, options); ...
java
public void selectOption(String expectedOption) { String[] options = checkSelectOption(expectedOption, 0, 0); String reason = NO_ELEMENT_FOUND; if (options == null && getElement().is().present()) { reason = ELEMENT_NOT_SELECT; } assertNotNull(reason, options); ...
[ "public", "void", "selectOption", "(", "String", "expectedOption", ")", "{", "String", "[", "]", "options", "=", "checkSelectOption", "(", "expectedOption", ",", "0", ",", "0", ")", ";", "String", "reason", "=", "NO_ELEMENT_FOUND", ";", "if", "(", "options",...
Asserts that the element's options contains the provided expected option. If the element isn't present or a select, this will constitute a failure, same as a mismatch. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param expectedOption the option expected...
[ "Asserts", "that", "the", "element", "s", "options", "contains", "the", "provided", "expected", "option", ".", "If", "the", "element", "isn", "t", "present", "or", "a", "select", "this", "will", "constitute", "a", "failure", "same", "as", "a", "mismatch", ...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/check/azzert/AssertContains.java#L149-L158
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/check/azzert/AssertContains.java
AssertContains.selectOptions
public void selectOptions(int numOfOptions) { int options = checkSelectOptions(numOfOptions, 0, 0); String reason = NO_ELEMENT_FOUND; if (options < 0 && getElement().is().present()) { reason = ELEMENT_NOT_SELECT; } assertTrue(reason, options >= 0); assertEqual...
java
public void selectOptions(int numOfOptions) { int options = checkSelectOptions(numOfOptions, 0, 0); String reason = NO_ELEMENT_FOUND; if (options < 0 && getElement().is().present()) { reason = ELEMENT_NOT_SELECT; } assertTrue(reason, options >= 0); assertEqual...
[ "public", "void", "selectOptions", "(", "int", "numOfOptions", ")", "{", "int", "options", "=", "checkSelectOptions", "(", "numOfOptions", ",", "0", ",", "0", ")", ";", "String", "reason", "=", "NO_ELEMENT_FOUND", ";", "if", "(", "options", "<", "0", "&&",...
Asserts that the element has the expected number of options. If the element isn't present or a select, this will constitute a failure, same as a mismatch. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param numOfOptions the expected number of options in ...
[ "Asserts", "that", "the", "element", "has", "the", "expected", "number", "of", "options", ".", "If", "the", "element", "isn", "t", "present", "or", "a", "select", "this", "will", "constitute", "a", "failure", "same", "as", "a", "mismatch", ".", "This", "...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/check/azzert/AssertContains.java#L187-L195
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/check/azzert/AssertContains.java
AssertContains.columns
public void columns(int numOfColumns) { int columns = checkColumns(numOfColumns, 0, 0); String reason = NO_ELEMENT_FOUND; if (columns < 0 && getElement().is().present()) { reason = "Element not table"; } assertTrue(reason, columns >= 0); assertEquals("Number o...
java
public void columns(int numOfColumns) { int columns = checkColumns(numOfColumns, 0, 0); String reason = NO_ELEMENT_FOUND; if (columns < 0 && getElement().is().present()) { reason = "Element not table"; } assertTrue(reason, columns >= 0); assertEquals("Number o...
[ "public", "void", "columns", "(", "int", "numOfColumns", ")", "{", "int", "columns", "=", "checkColumns", "(", "numOfColumns", ",", "0", ",", "0", ")", ";", "String", "reason", "=", "NO_ELEMENT_FOUND", ";", "if", "(", "columns", "<", "0", "&&", "getEleme...
Asserts that the element has the expected number of columns. If the element isn't present or a table, this will constitute a failure, same as a mismatch. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param numOfColumns the expected number of column eleme...
[ "Asserts", "that", "the", "element", "has", "the", "expected", "number", "of", "columns", ".", "If", "the", "element", "isn", "t", "present", "or", "a", "table", "this", "will", "constitute", "a", "failure", "same", "as", "a", "mismatch", ".", "This", "i...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/check/azzert/AssertContains.java#L205-L214
train
Coveros/selenified
src/main/java/com/coveros/selenified/element/check/azzert/AssertContains.java
AssertContains.rows
public void rows(int numOfRows) { int rows = checkRows(numOfRows, 0, 0); String reason = NO_ELEMENT_FOUND; if (rows < 0 && getElement().is().present()) { reason = "Element not table"; } assertTrue(reason, rows >= 0); assertEquals("Number of rows mismatch", num...
java
public void rows(int numOfRows) { int rows = checkRows(numOfRows, 0, 0); String reason = NO_ELEMENT_FOUND; if (rows < 0 && getElement().is().present()) { reason = "Element not table"; } assertTrue(reason, rows >= 0); assertEquals("Number of rows mismatch", num...
[ "public", "void", "rows", "(", "int", "numOfRows", ")", "{", "int", "rows", "=", "checkRows", "(", "numOfRows", ",", "0", ",", "0", ")", ";", "String", "reason", "=", "NO_ELEMENT_FOUND", ";", "if", "(", "rows", "<", "0", "&&", "getElement", "(", ")",...
Asserts that the element has the expected number of rows. If the element isn't present or a table, this will constitute a failure, same as a mismatch. This information will be logged and recorded, with a screenshot for traceability and added debugging support. @param numOfRows the expected number of row elements of a ...
[ "Asserts", "that", "the", "element", "has", "the", "expected", "number", "of", "rows", ".", "If", "the", "element", "isn", "t", "present", "or", "a", "table", "this", "will", "constitute", "a", "failure", "same", "as", "a", "mismatch", ".", "This", "info...
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/element/check/azzert/AssertContains.java#L224-L232
train
Coveros/selenified
src/main/java/com/coveros/selenified/utilities/Listener.java
Listener.recordResult
private void recordResult(ITestResult result) { // finalize our output file Reporter reporter = (Reporter) result.getAttribute(REPORTER); String htmlFilename = ""; String pdfFilename = ""; if (reporter != null) { // subtracting one from the status ordinal to map ITest...
java
private void recordResult(ITestResult result) { // finalize our output file Reporter reporter = (Reporter) result.getAttribute(REPORTER); String htmlFilename = ""; String pdfFilename = ""; if (reporter != null) { // subtracting one from the status ordinal to map ITest...
[ "private", "void", "recordResult", "(", "ITestResult", "result", ")", "{", "// finalize our output file", "Reporter", "reporter", "=", "(", "Reporter", ")", "result", ".", "getAttribute", "(", "REPORTER", ")", ";", "String", "htmlFilename", "=", "\"\"", ";", "St...
Checks to see if the test execution was performed on SauceLabs or not. If it was, this reaches out to Sauce, in order to update the execution results @param result - the testng itestresult object
[ "Checks", "to", "see", "if", "the", "test", "execution", "was", "performed", "on", "SauceLabs", "or", "not", ".", "If", "it", "was", "this", "reaches", "out", "to", "Sauce", "in", "order", "to", "update", "the", "execution", "results" ]
396cc1f010dd69eed33cc5061c41253de246a4cd
https://github.com/Coveros/selenified/blob/396cc1f010dd69eed33cc5061c41253de246a4cd/src/main/java/com/coveros/selenified/utilities/Listener.java#L175-L224
train
avast/android-styled-dialogs
library/src/main/java/com/avast/android/dialogs/core/BaseDialogFragment.java
BaseDialogFragment.getDialogListeners
@SuppressWarnings("unchecked") protected <T> List<T> getDialogListeners(Class<T> listenerInterface) { final Fragment targetFragment = getTargetFragment(); List<T> listeners = new ArrayList<T>(2); if (targetFragment != null && listenerInterface.isAssignableFrom(targetFragment.getClass())) { ...
java
@SuppressWarnings("unchecked") protected <T> List<T> getDialogListeners(Class<T> listenerInterface) { final Fragment targetFragment = getTargetFragment(); List<T> listeners = new ArrayList<T>(2); if (targetFragment != null && listenerInterface.isAssignableFrom(targetFragment.getClass())) { ...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "protected", "<", "T", ">", "List", "<", "T", ">", "getDialogListeners", "(", "Class", "<", "T", ">", "listenerInterface", ")", "{", "final", "Fragment", "targetFragment", "=", "getTargetFragment", "(", ")", ...
Utility method for acquiring all listeners of some type for current instance of DialogFragment @param listenerInterface Interface of the desired listeners @return Unmodifiable list of listeners @since 2.1.0
[ "Utility", "method", "for", "acquiring", "all", "listeners", "of", "some", "type", "for", "current", "instance", "of", "DialogFragment" ]
222a8a40b288e9ebf7e11e11bb1ced8e7bfa627f
https://github.com/avast/android-styled-dialogs/blob/222a8a40b288e9ebf7e11e11bb1ced8e7bfa627f/library/src/main/java/com/avast/android/dialogs/core/BaseDialogFragment.java#L169-L180
train
avast/android-styled-dialogs
library/src/main/java/com/avast/android/dialogs/core/BaseDialogFragment.java
BaseDialogFragment.modifyButtonsBasedOnScrollableContent
private void modifyButtonsBasedOnScrollableContent(boolean scrollable) { if (getView() == null) { return; } View vButtonDivider = getView().findViewById(R.id.sdl_button_divider); View vButtonsBottomSpace = getView().findViewById(R.id.sdl_buttons_bottom_space); View vD...
java
private void modifyButtonsBasedOnScrollableContent(boolean scrollable) { if (getView() == null) { return; } View vButtonDivider = getView().findViewById(R.id.sdl_button_divider); View vButtonsBottomSpace = getView().findViewById(R.id.sdl_buttons_bottom_space); View vD...
[ "private", "void", "modifyButtonsBasedOnScrollableContent", "(", "boolean", "scrollable", ")", "{", "if", "(", "getView", "(", ")", "==", "null", ")", "{", "return", ";", "}", "View", "vButtonDivider", "=", "getView", "(", ")", ".", "findViewById", "(", "R",...
Button divider should be shown only if the content is scrollable.
[ "Button", "divider", "should", "be", "shown", "only", "if", "the", "content", "is", "scrollable", "." ]
222a8a40b288e9ebf7e11e11bb1ced8e7bfa627f
https://github.com/avast/android-styled-dialogs/blob/222a8a40b288e9ebf7e11e11bb1ced8e7bfa627f/library/src/main/java/com/avast/android/dialogs/core/BaseDialogFragment.java#L185-L204
train
avast/android-styled-dialogs
library/src/main/java/com/avast/android/dialogs/core/BaseDialogFragment.java
BaseDialogFragment.resolveTheme
@StyleRes private int resolveTheme() { // First check if getTheme() returns some usable theme. int theme = getTheme(); if (theme != 0) { return theme; } // Get the light/dark attribute from the Activity's Theme. boolean useLightTheme = isActivityThemeLigh...
java
@StyleRes private int resolveTheme() { // First check if getTheme() returns some usable theme. int theme = getTheme(); if (theme != 0) { return theme; } // Get the light/dark attribute from the Activity's Theme. boolean useLightTheme = isActivityThemeLigh...
[ "@", "StyleRes", "private", "int", "resolveTheme", "(", ")", "{", "// First check if getTheme() returns some usable theme.", "int", "theme", "=", "getTheme", "(", ")", ";", "if", "(", "theme", "!=", "0", ")", "{", "return", "theme", ";", "}", "// Get the light/d...
Resolves the theme to be used for the dialog. @return The theme.
[ "Resolves", "the", "theme", "to", "be", "used", "for", "the", "dialog", "." ]
222a8a40b288e9ebf7e11e11bb1ced8e7bfa627f
https://github.com/avast/android-styled-dialogs/blob/222a8a40b288e9ebf7e11e11bb1ced8e7bfa627f/library/src/main/java/com/avast/android/dialogs/core/BaseDialogFragment.java#L219-L243
train
avast/android-styled-dialogs
library/src/main/java/com/avast/android/dialogs/core/BaseDialogFragment.java
BaseDialogFragment.isActivityThemeLight
private boolean isActivityThemeLight() { try { TypedValue val = new TypedValue(); //Reading attr value from current theme getActivity().getTheme().resolveAttribute(R.attr.isLightTheme, val, true); //Passing the resource ID to TypedArray to get the attribute valu...
java
private boolean isActivityThemeLight() { try { TypedValue val = new TypedValue(); //Reading attr value from current theme getActivity().getTheme().resolveAttribute(R.attr.isLightTheme, val, true); //Passing the resource ID to TypedArray to get the attribute valu...
[ "private", "boolean", "isActivityThemeLight", "(", ")", "{", "try", "{", "TypedValue", "val", "=", "new", "TypedValue", "(", ")", ";", "//Reading attr value from current theme", "getActivity", "(", ")", ".", "getTheme", "(", ")", ".", "resolveAttribute", "(", "R...
This method resolves the current theme declared in the manifest
[ "This", "method", "resolves", "the", "current", "theme", "declared", "in", "the", "manifest" ]
222a8a40b288e9ebf7e11e11bb1ced8e7bfa627f
https://github.com/avast/android-styled-dialogs/blob/222a8a40b288e9ebf7e11e11bb1ced8e7bfa627f/library/src/main/java/com/avast/android/dialogs/core/BaseDialogFragment.java#L248-L266
train
SteelBridgeLabs/neo4j-gremlin-bolt
src/main/java/com/steelbridgelabs/oss/neo4j/structure/providers/DatabaseSequenceElementIdProvider.java
DatabaseSequenceElementIdProvider.processIdentifier
@Override public Long processIdentifier(Object id) { Objects.requireNonNull(id, "Element identifier cannot be null"); // check for Long if (id instanceof Long) return (Long)id; // check for numeric types if (id instanceof Number) return ((Number)id).lo...
java
@Override public Long processIdentifier(Object id) { Objects.requireNonNull(id, "Element identifier cannot be null"); // check for Long if (id instanceof Long) return (Long)id; // check for numeric types if (id instanceof Number) return ((Number)id).lo...
[ "@", "Override", "public", "Long", "processIdentifier", "(", "Object", "id", ")", "{", "Objects", ".", "requireNonNull", "(", "id", ",", "\"Element identifier cannot be null\"", ")", ";", "// check for Long", "if", "(", "id", "instanceof", "Long", ")", "return", ...
Process the given identifier converting it to the correct type if necessary. @param id The {@link org.apache.tinkerpop.gremlin.structure.Element} identifier. @return The {@link org.apache.tinkerpop.gremlin.structure.Element} identifier converted to the correct type if necessary.
[ "Process", "the", "given", "identifier", "converting", "it", "to", "the", "correct", "type", "if", "necessary", "." ]
df3ab429e0c83affae6cd43d41edd90de80c032e
https://github.com/SteelBridgeLabs/neo4j-gremlin-bolt/blob/df3ab429e0c83affae6cd43d41edd90de80c032e/src/main/java/com/steelbridgelabs/oss/neo4j/structure/providers/DatabaseSequenceElementIdProvider.java#L173-L187
train
SteelBridgeLabs/neo4j-gremlin-bolt
src/main/java/com/steelbridgelabs/oss/neo4j/structure/providers/DatabaseSequenceElementIdProvider.java
DatabaseSequenceElementIdProvider.matchPredicateOperand
@Override public String matchPredicateOperand(String alias) { Objects.requireNonNull(alias, "alias cannot be null"); // alias.identifier return alias + "." + idFieldName; }
java
@Override public String matchPredicateOperand(String alias) { Objects.requireNonNull(alias, "alias cannot be null"); // alias.identifier return alias + "." + idFieldName; }
[ "@", "Override", "public", "String", "matchPredicateOperand", "(", "String", "alias", ")", "{", "Objects", ".", "requireNonNull", "(", "alias", ",", "\"alias cannot be null\"", ")", ";", "// alias.identifier", "return", "alias", "+", "\".\"", "+", "idFieldName", "...
Gets the MATCH WHERE predicate operand. @param alias The neo4j {@link Entity} alias in a MATCH statement. @return The MATCH WHERE predicate operand.
[ "Gets", "the", "MATCH", "WHERE", "predicate", "operand", "." ]
df3ab429e0c83affae6cd43d41edd90de80c032e
https://github.com/SteelBridgeLabs/neo4j-gremlin-bolt/blob/df3ab429e0c83affae6cd43d41edd90de80c032e/src/main/java/com/steelbridgelabs/oss/neo4j/structure/providers/DatabaseSequenceElementIdProvider.java#L195-L200
train
SteelBridgeLabs/neo4j-gremlin-bolt
src/main/java/com/steelbridgelabs/oss/neo4j/structure/Neo4JGraph.java
Neo4JGraph.createIndex
public void createIndex(String label, String propertyName) { Objects.requireNonNull(label, "label cannot be null"); Objects.requireNonNull(propertyName, "propertyName cannot be null"); // get current session Neo4JSession session = currentSession(); // transaction should be ready ...
java
public void createIndex(String label, String propertyName) { Objects.requireNonNull(label, "label cannot be null"); Objects.requireNonNull(propertyName, "propertyName cannot be null"); // get current session Neo4JSession session = currentSession(); // transaction should be ready ...
[ "public", "void", "createIndex", "(", "String", "label", ",", "String", "propertyName", ")", "{", "Objects", ".", "requireNonNull", "(", "label", ",", "\"label cannot be null\"", ")", ";", "Objects", ".", "requireNonNull", "(", "propertyName", ",", "\"propertyName...
Creates an index in the neo4j database. @param label The label associated with the Index. @param propertyName The property name associated with the Index.
[ "Creates", "an", "index", "in", "the", "neo4j", "database", "." ]
df3ab429e0c83affae6cd43d41edd90de80c032e
https://github.com/SteelBridgeLabs/neo4j-gremlin-bolt/blob/df3ab429e0c83affae6cd43d41edd90de80c032e/src/main/java/com/steelbridgelabs/oss/neo4j/structure/Neo4JGraph.java#L358-L367
train
fommil/matrix-toolkits-java
src/main/java/no/uib/cipr/matrix/sparse/SparseVector.java
SparseVector.getIndex
private int getIndex(int ind) { // Try to find column index int i = Arrays.binarySearchGreater(index, ind, 0, used); // Found if (i < used && index[i] == ind) return i; int[] newIndex = index; double[] newData = data; // Check available memory ...
java
private int getIndex(int ind) { // Try to find column index int i = Arrays.binarySearchGreater(index, ind, 0, used); // Found if (i < used && index[i] == ind) return i; int[] newIndex = index; double[] newData = data; // Check available memory ...
[ "private", "int", "getIndex", "(", "int", "ind", ")", "{", "// Try to find column index", "int", "i", "=", "Arrays", ".", "binarySearchGreater", "(", "index", ",", "ind", ",", "0", ",", "used", ")", ";", "// Found", "if", "(", "i", "<", "used", "&&", "...
Tries to find the index. If it is not found, a reallocation is done, and a new index is returned.
[ "Tries", "to", "find", "the", "index", ".", "If", "it", "is", "not", "found", "a", "reallocation", "is", "done", "and", "a", "new", "index", "is", "returned", "." ]
6157618bc86bcda3749af2a60bf869d8f3292960
https://github.com/fommil/matrix-toolkits-java/blob/6157618bc86bcda3749af2a60bf869d8f3292960/src/main/java/no/uib/cipr/matrix/sparse/SparseVector.java#L188-L230
train