量角器-如何从[对象对象]中提取数字

问题描述 投票:0回答:1

我正在编写测试以验证页面中显示为雇员(20)的雇员总数。在我的测试中,它作为[object Object]返回。如何从中提取数字?

enter image description here

typescript protractor
1个回答
0
投票

检查此示例。我在同一屏幕截图中同时包含了规范文件和页面文件。

enter image description here

回购链接:https://github.com/Bharath-Kumar-S/Protractor

© www.soinside.com 2019 - 2024. All rights reserved.