how to debug the protractor files?

2019-07-28 17:21发布

问题:

i want to debug the protractor files. If i use --elementexplorer, it is not working. No error occurs. but if enter any commands, it is not giving any output. I have tried elementor but still not working as expected.many a times, the chrome elementor closes automatically in between and it is also not giving anything if i enter the command and submit. any suggestions?

os: windows node version: 5+ protractor version: 6+

回答1:

--highlightDelay flag for debugging

A good way to debug protractor files is to use the blocking proxy feature. The highlight delay feature will highlight your web element with css for a set amount of seconds prior to doing the action.

So you could run:

protractor protractor.conf.js --highlightDelay 3000

This will highlight delay for 3 seconds in light blue before clicking a button or typing into an input field.




标签: protractor