如何调试量角器文件? [英] how to debug the protractor files?

查看:38
本文介绍了如何调试量角器文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想调试量角器文件.如果我使用--elementexplorer,它就不起作用.不会发生错误.但是如果输入任何命令,它不会给出任何输出.我已经尝试过 elementor,但仍然没有按预期工作.很多时候,chrome elementor 会在两者之间自动关闭,如果我输入命令并提交,它也不会给出任何内容.有什么建议吗?

操作系统:窗口节点版本:5+量角器版本:6+

解决方案

--highlightDelay 调试标志

调试量角器文件的一个好方法是使用

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+

解决方案

--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.


这篇关于如何调试量角器文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆