Selenium typing in a javascript text box??

View: New views
2 Messages — Rating Filter:   Alert me  

Selenium typing in a javascript text box??

by greenglobus :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am trying to create a test case where Selenium types something into a text box. However the textbox is javascript (with a toolbar).


Selenium will access the toolbar (and will note if i select/deselect things such as bold) but it will not access or note the actual text editing portion of the box.

Anybody have any ideas at all, I really hope i dont have to make it use an x-y coordinate location click.

Re: Selenium typing in a javascript text box??

by tommy234 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi,

you are working on fck editor which have its own fomatting toolbar. ou don't get work directly on it by selenium. you have to first focus on it and then write into it. Use the following link :

http://seleniumforum.forumotion.net/selenium-rc-discussion-f4/how-to-write-in-fck-editor-in-selenium-rc-by-using-java-code-t7.htm?highlight=editor

http://seleniumforum.forumotion.net/selenium-rc-discussion-f4/how-to-enter-into-utlimate-editor-similar-to-fck-in-explorer-t19.htm?highlight=editor

bye
greenglobus wrote:
I am trying to create a test case where Selenium types something into a text box. However the textbox is javascript (with a toolbar).


Selenium will access the toolbar (and will note if i select/deselect things such as bold) but it will not access or note the actual text editing portion of the box.

Anybody have any ideas at all, I really hope i dont have to make it use an x-y coordinate location click.