nightwatch.js

Nightwatch to select option from select box

∥☆過路亽.° 提交于 2019-11-27 01:58:55
问题 I am trying to use nightwatch.js to select an option from a select box. I have the code: this.browser.click('select[name="month"]') .pause(1000) .click('option[value="3"]') .click('select[name="day"]') .pause(1000) .click('option[value="6"]') .click('select[name="year"]') .pause(1000) .click('option[value="1989"]'); It selects the correct month, year on the page but not the day. Here's the HTML for the select box for the day: <select aria-label="Day" id="day" name="day" data-validatorGroup=

File Upload Testing in Nightwatch.js

别说谁变了你拦得住时间么 提交于 2019-11-26 20:55:05
问题 I'd like to reopen the question posed here and here about testing file uploading within Nightwatch.js which uses selenium. Both links have the recommended solution of setting the value of the file input element as the url. In my use case, I've been unable to get this to work. Even setting the value tag manually, outside of nightwatch, of the input where type="file" , does not change the url. I've tried this on Chrome, Firefox, and IE10, within the dev tools. An alternative solution I've

How do I enable WebGL in headless chrome in Ubuntu?

*爱你&永不变心* 提交于 2019-11-26 12:29:43
问题 How do I enable webgl or install webgl in headless chrome in Ubuntu 14? I tried installing libosmesa6, but that did not help. Can someone please point me in the right direction? I want to use webgl to work with headless chrome and selenium tests? I am using nightwatch to run the tests. 回答1: This worked for me to get chrome to use osmesa sudo apt-get install libosmesa sudo ln -s /usr/lib/x86_64-linux-gnu/libOSMesa.so.6 /opt/google/chrome/libosmesa.so google-chrome --no-first-run --user-data