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 - Browser Windows
Watir - Browser Windows
你们将走到我们必须使用人口窗口或打开新的浏览器窗户的地方。 在本章中,我们将讨论如何利用Watir测试此类案件。
Syntax
browser.window
这里提供了我们将测试的一个工作例子:
<html> <head> <title>Testing UI using Watir</title> </head> <body> <script type = "text/javascript"> function wscpck() { var myWindow = window.open( "https://www.google.com/", "mywindow", "width = 1000,height = 500"); } </script> <form name = "myform" method = "POST"> <span> <br> <input type = "button" id = "btnsubmit" name = "btnsubmit" value = "submit" oncpck = "wscpck()"/> <br> </span> </form> <br/> </body> </html>
Output
猪顿开放窗口的浮点打开。 这里,我们提供的尿液是