如何从带有量角器的文本中选择一个句子? [英] How can I select a sentence from a text with protractor?
本文介绍了如何从带有量角器的文本中选择一个句子?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我必须使用量角器为富文本编辑器发送文本.我想从文本中选择一个句子,然后单击粗体按钮以使该句子变为粗体.
I have to text a rich text editor using protractor. I want to select a sentence from the text and then click on the bold button to make this sentence bold.
我已经尝试了一些测试以选择所有文本,但是它不起作用.我正在使用MAC计算机.
I have tried some tests to select all the text, but it is not working. I am using a MAC computer.
browser.actions().keyDown(protractor.Key.COMMAND).sendKeys('a').perform();
我该如何实现?
提前谢谢.
推荐答案
我认为 protractor-hotkeys包可以为您提供帮助.让我知道您是否需要一些样本.
I think protractor-hotkeys package can help here. Let me know if you need some sample of it.
这篇关于如何从带有量角器的文本中选择一个句子?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文