Watir Tutorial
Selected Reading
- Watir - Discussion
- Watir - Useful Resources
- Watir - Quick Guide
- Watir - Browser Windows
- Watir - Downloads
- Watir - Alerts
- Watir - Proxies
- Watir - Cookies
- Watir - Page Performance
- Watir - Page Objects
- Watir - Capturing Screenshots
- Watir - Mobile Testing
- Watir - Headless Testing
- Watir - Automatic Waits
- Watir - Working with Iframes
- Watir - Locating Web Elements
- Watir - Web Elements
- Watir - Working with Browsers
- Watir - Installing Drivers for Browsers
- Watir - Environment Setup
- Watir - Introduction
- Watir - Overview
- Watir - Home
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Watir - Mobile Testing
Watir - Mobile Testing
为了进行流动测试,我们将使用桌面浏览器,作为测试工具浏览器。 让我们理解本章中的程序。
为了测试你在移动浏览器上的用量,我们需要安装网络用户-用户。
Instalpng webdriver-user-agent
gem install webdriver-user-agent
现在,我们将使用网络用户使用力,如下文所示:
Example
require watir require webdriver-user-agent driver = Webdriver::UserAgent.driver(browser: :chrome, agent: :iphone, orientation: :landscape) browser = Watir::Browser.new driver browser.goto https://facebook.com puts "#{browser.url}" puts browser.url == https://m.facebook.com/
我们提供了面纱。 如下文所示,在你执行时,根据使用剂,以移动方式开放。
让我们现在以 por魔方式努力。 为此使用以下法典:
require watir require webdriver-user-agent driver = Webdriver::UserAgent.driver(browser: :chrome, agent: :iphone, orientation: :portrait) browser = Watir::Browser.new driver browser.goto https://facebook.com puts "#{browser.url}" puts browser.url == https://m.facebook.com/
彩色模式的产出如下所示:
Advertisements