Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
Archer21
Posts : 1
Join date : 2011-08-04

Entering data in textarea - help! Empty 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.
avatar
freesky
Amateur
Amateur
Posts : 72
Join date : 2011-04-13

Entering data in textarea - help! Empty 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.
avatar
mad227
Active particpant
Active particpant
Posts : 11
Join date : 2011-08-30

Entering data in textarea - help! Empty 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.
avatar
selftechy
Posts : 9
Join date : 2011-09-14
Location : Bangalore, India
http://www.selftechy.com

Entering data in textarea - help! Empty 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
Sponsored content

Entering data in textarea - help! Empty Re: Entering data in textarea - help!

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