Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Selenium Script issue
Tue Dec 06, 2016 9:48 pm by njain213

» Difference between QTP, Selenium and Silk test
Tue Dec 06, 2016 7:58 pm by jessicacyrus1

» Where does selenium script pick browser from
Tue Dec 06, 2016 1:52 pm by janbaskt

» Safari throws an HTTP ERROR: 404
Tue Dec 06, 2016 1:51 pm by janbaskt

» Access Denied Error in Selenium RC
Tue Dec 06, 2016 1:51 pm by janbaskt

» Automating Flex application through selenium webdriver
Fri Dec 02, 2016 2:06 pm by abhinay.krs

» Starting with Selenium, what is Selenium?
Mon Nov 28, 2016 4:00 pm by Foma

» Getting started with Selenium
Mon Nov 28, 2016 3:23 pm by Rebbelx

» Selenium IDE Verify different Maps (Hybridview, Mapview etc.)
Fri Nov 25, 2016 9:56 pm by DJ87

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

EDIT TEXT AREA

View previous topic View next topic Go down

EDIT TEXT AREA

Post by kumar123 on Mon Sep 10, 2012 12:54 am

I want to edit text present in text area of a webpage and then updated text should appear in that webpage text area.

I have tried using below code, but i am getting htmlSource element not found exception.

driver.findElement(By.xpath("(//textarea[@id='htmlSource'])")).sendKeys("My text to your text edit");

can any one help me i have tried may ways used xpath, name, id etc but no help i got. Please help.
I am using selenium, testng scripts. JDK1.6

Regards,
kumar.

kumar123

Posts : 1
Join date : 2012-09-10

Back to top Go down

Re: EDIT TEXT AREA

Post by sreekumar on Wed Sep 12, 2012 3:13 pm

Kumar 123

First clear the text box and add the new text.

driver.findbyElement(By.xpath("").clear();

driver.findElement(By.xpath("(//textarea[@id='htmlSource'])")).sendKeys("My text to your text edit");

Now it will update new text every time in text box

sreekumar
Active particpant
Active particpant

Posts : 16
Join date : 2011-12-27
Age : 31
Location : Hyderabad

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