html代码如下:
- <html lang="en">
- <head>
- <title>your favorite fruits</title>
- </head>
- <body>
- <p>select ur perfer fruit</p>
- <br>
- <select name='fruit'>
- <option id='peach' value='taozi'>peach</option>
- <option id='watermelon' value='xigua'>watermelon</option>
- </select>
- <br>
- <input type='checkbox'>Do you like fruits?</input>
- <br><br>
- <input type=text" id="text" value="Watermelons are so sweet this year!">This is Input box</input>
- </body>
- </html>
@Test
public void testExplicitWait(){
- driver.get("