赛普拉斯在没有任何桌子的情况下排成一排的长度
我从图片和网站上有以下代码,我如何断言该行有4个长度? 我在titter中说的不是桌子的身体:(
谢谢!!!
https://i.sstatic.net/vqbfA.png
https://i.sstatic.net/vLL74.jpg
I have the following code from the picture and the website, how can I make an assertion that the row has a 4 length?
And how i say in the tittle , it is not a table body :(
Thank you!!!
https://i.sstatic.net/vqbfA.png
https://i.sstatic.net/vLL74.jpg
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于它是一个列表,因此您将一口气获得所有
li
元素的长度。我能做的最好的事情是,获取所有列表元素,然后断言总长度%4 == 0
。这将意味着不管有多少行都将有4个元素。类似Since it's a list, you will get the length of all
li
elements in one go. The best I could think of, that you can do is, get all the list elements and then make assert that that thetotal length %4 == 0
. Which will mean no matter how many rows are there all the rows will have 4 elements. Something like