import java.io.IOException;public class GoogleSearch1Test extends SpringBaseTestNGTest {
@Autowired
private GooglePage googlePage;
@Lazy // only create the object when needed
@Autowired
private ScreenShotUtil screenShotUtil;
@Test
public void GoogleTest() throws IOException, InterruptedException {
this.googlePage.goToGooglePage();
Assert.assertTrue(this.googlePage.isAt());
this.googlePage.getSearchComponent().search("spring boot");
Assert.assertTrue(this.googlePage.getSearchResult().isAt());
————————————————
<网址>
<网址>
<网址>
<网址>
<网址>
<网址>
<网址>
https://www.laipuhuo.com/goodsDetail/03dd19d7292a4adc9c73111e55b5de49.html
https://www.laipuhuo.com/goodsDetail/03f31f4a83d54a90b1d8e909cd2c3301.html
https://www.laipuhuo.com/goodsDetail/0414fd36acd34d8ea4fed73c2df92ea7.html
https://www.laipuhuo.com/goodsDetail/0448b35299a542479f80940c8db9ac74.html