
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
This library is a Helper for Protractor Tests.
Esquadro is easy to use and is divided in two parts:
To install, execute the command:
npm install esquadro --save-dev
First part is the page, where methods to interact with browser are. See examples of how to use: First, import the module into your PageObject :
const page = require('esquadro/page');
After import, you can use page helpers. See this helpers bellow:
page.setValue(element, value, timeout)
This method receives an element, a value to set and a timeout (optional, default is 5000)
page.clickOn(element, timeout)
The above method receives an element to click and a timeout (optional, default is 5000)
page.waitForElementPresenceInDOM(element, timeout)
The method above waits for an element to be present in them DOM and a timeout to wait (optional, default is 5000)
page.waitForElementNotPresenceInDOM(element, timeout)
The above method waits until element is NOT attached in them DOM and receives two parameters, the first is the element and second is a timeout to wait (optional, default is 5000)
page.waitForElementToBeClickable(element, timeout)
The above method waits for an element to click on and receives two parameters, the first is the element to click and second is a timeout to wait (optional, default is 5000)
page.waitForElementToBeVisible(element, timeout)
The above method waits for an element to be visible on and receives two parameters, the first is the element to click and second is a timeout to wait (optional, default is 5000)
page.waitForElementToBeInvisible(element, timeout)
The above method waits until the element is invisible and receives two parameters, the first is the element and second is a timeout to wait (optional, default is 5000)
page.waitAlterUrl(url, timeout)
The above method waits until the browser url is altered and receives two parameters, the first is the url and second is a timeout to wait (optional, default is 5000)
page.switchDriverToOpenTab(urlNewTab)
The above method switches webdriver to a new opened tab and receives the url for this new tab
page.returnDriverToMainTab()
The above method switches webdriver to then main tab
page.scrollPageTo(valuePixels)
The above method scrolls the page to a specified position
page.scrollTop()
The above method scrolls the page to the top
page.getScreenshot(nomeArquivo, pathScreenShot)
The above method takes a screenshot and save the file into a specified path
The second part is the helper to interact with selected elements and choose options.
How to use: First, import the select module into your PageObject Class:
const Select = require('esquadro/select');
After import, create instance this module:
const selectType = new Select(element);
The constructor receives which element to manipulate
This helper has these methods bellow:
It returns all options in Select element
E.g.:
selectType.getOptions().then(function(options){
options[1].getText().then(function(value){
console.log(value);
});
});
In this case, it returns text from the first element of the options in a selected element and prints this value
It returns the option selected in the select element
E.g.:
selectType.getOptionSelected().getText().then(function(value) {
console.log(value);
});
In this case, it returns text from the option selected in select element
The above method selects the option by the value of the select element
E.g.:
selectType.selectByValue('fire');
In this case, it selects the option where value equals 'fire'
The above method selects the option by visible text of the select element
E.g.:
selectType.selectByVisibleText('FIRE');
In this case, it selects the option where your text equals 'FIRE'
The above method selects the option by index in a list of options of the select element
E.g.:
selectType.selectByIndex(2);
In this case, it selects the option where your index is 2, starting the count at 0
FAQs
Protractor Helper
We found that esquadro 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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.