Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
bluefox
Advanced tools
Readme
The bluefox library lets you be notified when a DOM tree has reached a specific condition, using a convenient syntax. It has been designed for high accuracy and low overhead.
The functionality is similar to the wait functions found in many WebDriver/Selenium client libraries. Unlike most of those libraries, bluefox does not employ periodic polling. Also, instead of sending many commands over the network during the wait, the resolving of wait conditions in bluefox takes place entirely in the browser. This means that the moment the wait condition resolves is a lot closer to the actual change.
The overhead that this library introduces to the page being tested is kept as low as possible.
const Bluefox = require('bluefox'); // browserify / webpack
const wait = new Bluefox().target(window);
wait.timeout('5s').selector('section#main > div.contactInformation > a.viewProfile').then(link => {
link.click();
}).catch(err => {
console.error('uh o', err);
});
<!DOCTYPE html>
<html>
<head>
<title>Hi!</title>
<script src="../standalone.js"></script>
<script>
(async () => {
console.log(new Date(), 'Waiting...');
const wait = new Bluefox().target(window);
const element = await wait.timeout('5s').selector('#foo > strong');
element.textContent = 'wereld!!';
console.log(new Date(), 'Done!');
})();
</script>
</head>
<body>
<div id="foo">
Hello
</div>
<script>
setTimeout(() => {
foo.insertAdjacentHTML(
'beforeend',
'<strong>world</strong>'
)
}, 1000);
</script>
</body>
TODO
FAQs
The bluefox library lets you be notified when a DOM tree has reached a specific condition, using a convenient syntax. It has been designed for high accuracy and low overhead.
We found that bluefox 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
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).