Welcome to Intellipaat Community. Get your technical queries answered by top developers!
I want to put value using webdriver,
This is the command I am using
I want to put tab keys and keys in text box, can someone suggest an easy way to do so ?
If you want to send keys to a text box and send tab key both at the same time instead of writing two different statements, use a comma.
By using a comma you can send both username and key-stroke at the same time.
If you wish to Learn Selenium visit this Selenium Training by Intellipaat.
If your application is using frames, you can try as follows:
First, pass driver control to the frame using----
After that perform the operation which you want to do on the web element present inside frame say here you want to enter the text "daniel"--
I hope that helps!
In order to use TAB keys here, you need to do something like below:
Actions builder = new Actions(driver);builder.keyDown(Keys.TAB).perform()
Actions builder = new Actions(driver);
I also had that problem as well before. But then what I did to make it work is:
You can use click() method [ i.e in your case : clear(), click(), sendKeys() ] before sendkeys()and sendkeys will start working:-
driver.findElement(By.name("name")).clear(); driver.findElement(By.name("name")).click(); driver.findElement(By.name("name")).sendKeys("abc");
Certification in Digital Marketing |
Certification in Big Data Analytics |
Certification in Cloud & Devops |
Certification in Full Stack Web Development
Big Data and Data Science Master’s Course |
Data Science Architect Master’s Program |
Cloud and DevOps Architect Master’s Course |
Artificial Intelligence Engineer Master’s Course |
Microsoft Azure Certification Master’s Training
Data Science Course Online |
Big Data Hadoop Certification Training |
Machine Learning Course Online |
Artificial Intelligence Course and Training |
Salesforce Certification Training: Administrator and App Builder |
Tableau Training and Certification Course |
Python Data Science Course & Training |
Ethical Hacking Course |
Business Analyst Course |
Courses in Cyber Security
© COPYRIGHT 2011-2021 INTELLIPAAT.COM. ALL RIGHTS RESERVED.