当前位置:网站首页>Selenium webdriver page refresh
Selenium webdriver page refresh
2022-07-24 08:25:00 【The bearer of dark cuisine】
This article refers to the article :https://blog.csdn.net/xiaoguanyusb/article/details/80703708
The method used for page refresh
driver.navigate().refresh();Five ways of page refresh , The most common one is the second .
/**
1.Using sendKeys.Keys method
Click the refresh button on the page
*/
driver.get("https://accounts.google.com/SignUp");
driver.findElement(By.id("firstname-placeholder")).sendKeys(Keys.F5);
/**
2.Using navigate.refresh() method
Use the refresh method
*/
driver.get("https://accounts.google.com/SignUp");
driver.navigate().refresh();
/**
3.Using http://navigate.to() method
*/
driver.get("https://accounts.google.com/SignUp");
driver.navigate().to(driver.getCurrentUrl());
/**
4.Using get() method
Use get Method
*/
driver.get("https://accounts.google.com/SignUp");
driver.get(driver.getCurrentUrl());
/**
5.Using sendKeys() method
Use get Method
*/
driver.get("https://accounts.google.com/SignUp");
driver.findElement(By.id("firstname-placeholder")).sendKeys("\uE035");
边栏推荐
- Adaptive problem of img aspect ratio scaling in flex layout in Safari
- Move protocol starts with running and builds a healthy ecosystem of sports
- Wechat applet file types and functions
- [JDBC] classic interview questions of JDBC, constantly updating
- Do you know the private domain traffic in app?
- Will Plato become the risk target of the meta universe? Platofarm has great opportunities
- js获取当前浏览器的默认语言
- [wechat applet development (III)] realize the stacking and sliding of cards
- P1739表达式括号匹配题解
- [Linux] Oracle VirtualBox installation CentOS 8
猜你喜欢

Read and understand move2earn project - move

33 introduction to sparksql, dataframe and dataset

Encryption market ushers in a new historical cycle. Look at jpex's "stability" and "health"

Musk responded that the brain has been uploaded to the cloud: already did it!
In the next bull market, can platofarm, the leading project in the Web3 world, set foot on the top of the mountain

From starfish OS' continued deflationary consumption of SFO, the value of SFO in the long run

Database | simple hospital patient appointment system based on opengauss

Summary of study notes (I)

The beta version of move protocol is stable, and it is temporarily decided to expand the scale of the prize pool

M-dao creates a one-stop Dao platform, allowing hundreds of millions of players to join Dao space
随机推荐
Autojs article proficient in detailed explanation of autojs script tutorial
As skillfully uses idea annotation to improve collaboration / development efficiency
Vidar-Team战队专访:AS WE DO, AS YOU KNOW.
Kotlin coprocess analysis (III) -- understanding the context of coprocess
[wechat applet development (II)] custom navigation bar
[shutter] the shutter doctor reports an error
[wechat applet development] (III) homepage banner component uses swiper
[linear algebra] deeply understand matrix multiplication, symmetric matrix, positive definite matrix
[multithreading] five communication modes between multithreads
[Game Collection] mobile phones are about to burst, and a collection of six high-quality pyGame games is coming ~ (source code attached)
「题解」蝙蝠侠的麻烦
Chinese brands in the historical process
MySQL index filesort
基于thinkphp将execle表格上传并插入数据库
Wechat applet subscription message development process
Several development frameworks based on openresty
P3916图的遍历 题解
DGL库中一些函数或者方法的介绍
Classic problems of binary tree
Kotlin学习笔记1——变量、函数