Display results as :

Rechercher Advanced Search

Latest topics
» how to connect DB in selenium webriver
Fri Oct 06, 2017 4:09 pm by anbarasi

» How find any text in browser screen and click on it?
Thu Oct 05, 2017 2:02 pm by sandeepkommineni

» Selenium Webdriver
Tue Oct 03, 2017 1:35 pm by PiyushBiswas

» GRID setup tutorial.
Wed Sep 27, 2017 4:29 pm by johnyapp

» Drag & Drop Between Windows Using Selenium Driver
Wed Sep 27, 2017 2:10 pm by 26rondel

» Check if window is closed / verify input
Sat Sep 23, 2017 10:21 pm by brainstir

» How to work on pages with AJAX in selenium?
Mon Sep 18, 2017 6:08 pm by azharuddin

» pause test until user press a key like F2
Wed Aug 09, 2017 11:10 pm by djnforce

» Selecting the input for auto populating element
Sat Jul 29, 2017 7:53 pm by kdabbara


How to remove existing values from the input fields?

View previous topic View next topic Go down

How to remove existing values from the input fields?

Post by gkpandi on Wed Jun 05, 2013 4:11 pm


I'm trying to automate my page which contains certain input fields like textbox, drop down, button etc.

I have defined three methods for the following functionalities:

1. Open application
2. Get data from excel
3. Save data
4. Clear input fields after saved

Its working fine for the first iteration. Next time, the input field information are not cleared even I have used the script as below.

driver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);

driver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);

Note: Its appending new cell information with the existing information in the input fields.

Please help me to solve this problem.


Active particpant
Active particpant

Posts : 14
Join date : 2013-05-23

Back to top Go down

Re: How to remove existing values from the input fields?

Post by mail2prassad on Wed Jun 05, 2013 10:12 pm

Is the page being submitted when you save the data or is it an ajax call.
If the page is being submitted, then the elements driver reference to the elements will no longer be the same.

try to print or debug the values

check whether they are null, also please post the error stack.


Posts : 41
Join date : 2013-06-05

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum