- Archer21
- Posts : 1
Join date : 2011-08-04
Entering data in textarea - help!
Thu Aug 04, 2011 4:58 am
Hi,
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.
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.
- freeskyAmateur
- Posts : 72
Join date : 2011-04-13
Re: Entering data in textarea - help!
Thu Aug 04, 2011 10:05 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.
- mad227Active particpant
- Posts : 11
Join date : 2011-08-30
Re: Entering data in textarea - help!
Wed Sep 14, 2011 1:21 am
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.
If you are filling out a form, tabbing to the next field or hitting Enter will do the same thing.
Hope this helps.
Re: Entering data in textarea - help!
Wed Sep 14, 2011 6:53 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
- urgent- please give me one example of data driven data program in selenium rc using java language
- Unable to select textarea values using webdriver (controls are develped using BMC remedy software)
- Entering a time stamp in comment / text box?
- Weird behavior by IE driver when entering value in password field
- Data Driven Testing in IDE
Permissions in this forum:
You cannot reply to topics in this forum
|
|