Display results as :

Rechercher Advanced Search

Latest topics
» windows doen't exist error
Mon Jul 28, 2014 11:24 pm by ccox

» Login Function
Thu Jul 24, 2014 11:22 pm by ccox

» Creating Loops in selenium IDE
Thu Jul 24, 2014 10:20 pm by ccox

» how to get the value of the <label for="My_Career">My Career</label> in selenium
Thu Jul 24, 2014 5:58 pm by Paps_engineer

» How to Sort List<WebElements>
Thu Jul 24, 2014 4:23 pm by Rajasekhar

» Using Selenium Webdriver through selenium with fancy reporting
Wed Jul 23, 2014 8:49 pm by amad410

» how to identify element using xpath having same class names?
Wed Jul 23, 2014 12:14 pm by ravindarreddy.nalla

» Selenium test Cases Execution
Wed Jul 23, 2014 12:12 pm by ravindarreddy.nalla

» Selenium test development process
Tue Jul 22, 2014 4:14 pm by cattox


Entering data in textarea - help!

View previous topic View next topic Go down

Entering data in textarea - help!

Post by Archer21 on Thu Aug 04, 2011 3:28 am


I have just started using Selenium and am only doing basic record and
playback for my scripts as I don't have much coding experience.

I have come across a problem where I was clicking into a textbox and entering a value but Selenium was not recording anything.

I looked at the source code for the page and found the name of the box. Now Selenium can see the target "css=.text-editor" if I click "Find" (box flashes yellow) but when I use the command "type" and Value "test" Selenium will not enter anything into the textarea.

Just wondered if anyone could help me out please?

Thanks in advance.


Posts: 1
Join date: 2011-08-04

Back to top Go down

Re: Entering data in textarea - help!

Post by freesky on Thu Aug 04, 2011 8:35 am

there are two forms text editor,one is code form,like 'textarea',it's easy,we can use 'type' directly.another is the 'what you see is what you get',in this form,we can't use selenium command directly,i heard that we can use js.


Posts: 72
Join date: 2011-04-13

Back to top Go down

Re: Entering data in textarea - help!

Post by mad227 on Tue Sep 13, 2011 11:51 pm

I noticed that when you are recording and enter data into a field you have to click outside that field and *then* Selenium will recognize what you typed and where. You can also use type, yet I just normally type and click outside the box.

If you are filling out a form, tabbing to the next field or hitting Enter will do the same thing.

Hope this helps.

Active particpant
Active particpant

Posts: 11
Join date: 2011-08-30

Back to top Go down

Re: Entering data in textarea - help!

Post by selftechy on Wed Sep 14, 2011 5:23 pm

Use firebug to identify the object's HTML tag and then construct a proper xpath. e.g. if it is textarea edit box then probable xpath would be //textarea[@id='id']. put this xpath into the selenium ide and click on Find. This should highlight the object. Then use type command to type in the textarea, it works


Posts: 9
Join date: 2011-09-14
Location: Bangalore, India

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