Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
jasmine-webdriver-controller
Advanced tools
Adds methods to jasmine that enable it to send commands to a webdriver server
Adds methods to jasmine that enable it to send commands to a webdriver server. This allows for component oriented testing from jasmine.
Driver
object is created to communicate with the webdriver server.The documentation for the selector factories in WebdriverJS is poor. Here's an example:
By.id("user")
I think you can also pass strings and DOM element pointers as selectors, but I'm not clear on how/if this works.
All of the available methods are added to the this
object for each spec. They can be accessed from within a jasmine
test as this.method-name()
.
getDeferred() => webdriver.promise.Deferred
A convenience factory for WebdriverJS Deferred
objects. These objects contain a promise and the methods to resolve
the promise.
See https://code.google.com/p/selenium/wiki/WebDriverJs#Deferred_Objects for a complete explaination of Deferred
.
waitForElement(selector) => webdriver.promise.Promise
Waits until the element selected by the selector
exists in the DOM.
waitForVisible(selector) => webdriver.promise.Promise
Waits until the element selected by the selector
is visible in the DOM. For an element to be visible, all of the
following must be true:
visibility: hidden
applied to itdisplay: none
applied to itwaitForNotVisible(selector) => webdriver.promise.Promise
Waits until the element selected by the selector
is not visible in the DOM. For an element to not be visible, at least
one of the following must be true:
visibility: hidden
applied to itdisplay: none
applied to itclick(selector) => webdriver.promise.Promise
Clicks the element selected by the selector
.
mouseOver(selector) => webdriver.promise.Promise
Hovers the mouse cursor over the element selected by the selector
.
sendKeys(selector, keys) => webdriver.promise.Promise
Gives focus to the element selected by the selector
, then sends keystrokes.
selector
a valid Webdriver selector
keys
a string of keys to be sent
FAQs
Adds methods to jasmine that enable it to send commands to a webdriver server
We found that jasmine-webdriver-controller demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.