如何从Selenium Typescript中的下拉中获取文本
嗨,我正在尝试使用Selenium Webdriver和Typescript从下拉框中获取所选文本。 我已经尝试了全部(选项:检查,jQuery等),但它不起作用。 我们如何使用WebElement链接获得所选文本? 例如: webelement parent =等待驱动程序。 var text = parent .------获取所选选项? 是否可以?
Hi i'm trying to get the selected text from a dropdown box using selenium webdriver and typescript.
I have tried all(option:checked ,jquery etc) but it is not working .
How do we get the selected text using webelement chaining?
For example:
webelement parent= await driver.findElement(By.id("abc"));
var text=parent.------and get the selected option?
is it possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论