python - 如何使用 if 子句来确保它检查问题中的“知识”词?
问题描述
我一直在尝试解决/练习以下练习(Selenium Webdriver with Python),因为我是编程新手。
练习总结:
Open http://www.wikipedia.org and write NUnit/WebDriver test for the following using
Google Chrome: (12 points)
a. Display on console the number of articles in English and click on “English” link (3 points)
b. Search for Anna University. (3 points)
c. Print the 'Motto in English' part in the console and ensure it has the word 'Knowledge' in
it. (3 points)
d. Ensure that “Shiv Nadar” is listed in notable people section (3 points)
--> 现在在这里我无法写下如何放置 if 语句来检查/确保其中包含单词 Knowledge 以及如何检查 d 部分?
请帮助我理解。
解决方案
推荐阅读
- python - 显示多张图片
- docker - CMD java -version &> /staf-logs/output.log 和 docker 中的 CMD ["java -version &> /staf-logs/output.log"] 有什么区别
- java - Android Studio - 自定义 Listview EditText 值不存储
- go - type 关键字在 go 中(确切地)做了什么?
- javascript - 提供给`Calendar`的`String`类型的无效道具`selected`,预期的`Date`实例?
- android - Firebase - 排除一些屏幕进行跟踪
- vbscript - 如何单击 webtable 单元格中的按钮
- python-2.7 - 并行使用 numpy linalg 的内存泄漏
- angular - 关于 Angular 模板驱动表单中 ngForm 和 ngModel 的概念
- spring-boot - MyBatis:自动扫描类型别名