JavaScript micro library to help modelling really simple page objects.
var page = Ombu.create({
visit: '/path',
foo: {
scope: '.a-foo',
bar: '.a-bar'
}
});
console.log(page); // "/path"
console.log(page.foo); // ".a-foo"
console.log(page.foo.bar); // ".a-foo .a-bar"Ombu depends on Ceibo library. You need to load this library before Ombu.
<html>
<head>
...
<script src="/path_to_ceibo/index.js"></script>
<script src="/path_to_ombu/index.js"></script>
</head>
...
</html>TBA
Trim whitespaces at both ends and normalize whitespaces inside text.
Due to variations in the HTML parsers in different browsers, the text returned may vary in newlines and other white space.
See http://api.jquery.com/text/.
normalize('Hello \n\nWorld!\n') === 'Hello World!'Ombu is licensed under the MIT license.
See LICENSE for the full license text.