
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
appmodeljs provides application modeling support specific modeling your application components (including pages) for UI testing.
npm install --save-dev appmodel
TBD
appmodeljs provides support to Protractor - to generate By objects.
var AppModelMgr = require('appmodel');
/* Specify that we are using Protractor.
* This will ensure that By.* objects are Protractor compliant.
*/
var mgr = AppModelMgr('Elvis App', true);
// Load a series of our models (e.g. page objects) defined in JSON format files.
mgr.add('/mydata/login.json');
mgr.add('/mydata/main_nav.json');
mgr.add('/mydata/sidenav.json');
var protractor_locator = **mgr.locator('page(Login).get(userid)')**;
element(protractor_locator).sendKeys('Elvis');
..
..
it('should highlight', (done) => {
let appModel = AppModelMgr.createMgr("Test");
appModel.load(dut);
appModel.highlight('page(login).get(locale)', 'Red').then( (rc) => {
expect(rc).toBe(true);
done();
})
})
Load a modeling file (JSON) which includes generating their respective page objects.
```
const dut = process.cwd() + '/test/data/page.json';
let appModel = AppModelMgr.createMgr("Test");
appModel.load(dut);
```
describe('AppModel - selection', () => {
const dut = process.cwd() + '/test/data/page.json';
it('should switch to polski', (done) => {
let appModel = AppModelMgr.createMgr("Test");
appModel.load(dut);
appModel.selectBy('page(login).get(locale)',
{ by: 'value',
description: '#selectLang>option[value="ja"]',
from: '#selectLang>option[value="ja"]',
value: 'ja'}).
then( (rc) => {
expect(rc).toBe(true);
done();
});
})
...
Selection from a select (or Dropdown) component by providing a locator, of the select/dropdown element, and the target select item.
Select by text (String) ``` it('should select using text', (done) => { let appModel = AppModelMgr.createMgr("Test"); appModel.load(dut);
appModel.select('page(login).get(locale)', 'Korean').
then( (rc) => {
expect(rc).toBe(true);
return rc;
}).then(() => {
setTimeout(function() { console.log("SLEEP"); done(); }, 5000);
});
})
```
Select by Value ``` it('should select with value', (done) => { let appModel = AppModelMgr.createMgr("Test"); appModel.load(dut);
appModel.select('page(login).get(locale)', { by: 'value', value: 'VI' }).
then( (rc) => {
expect(rc).toBe(true);
return rc;
}).then(() => {
setTimeout(function() { done(); }, 5000);
});
}) ```
Select by Index
it('should select with index', (done) => {
let appModel = AppModelMgr.createMgr("Test");
appModel.load(dut);
appModel.select('page(login).get(locale)', { by: 'index', index: 10 }).
then( (rc) => {
expect(rc).toBe(true);
return rc;
}).then(() => {
setTimeout(function() { console.log("SLEEP"); done(); }, 5000);
});
})
For more details see GitHub Flavored Markdown.
Your Pages site will use the layout and styles from the Jekyll theme you have selected in your repository settings. The name of this theme is saved in the Jekyll _config.yml configuration file.
Having trouble with Pages? Check out our documentation or contact support and we’ll help you sort it out.
FAQs
Application Modeling Framework
We found that appmodel 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.