RE: how to check the text entered before and after login remain unchanged

Answered

hi all,

I have few text fields like ‘Title’, ‘Message’
I need to enter text into this fields,
after that I need to login into application,
after successfully login, the text entered should be remain unchanged

How can I code to check the text entered before and after login remain unchanged, how can I do this? Thanks.

Add Comment
3 Answers

Try this

driver.switchTo().frame(driver.findElement(By.xpath(“//iframe[@class=’wysiwyg_frame’]”)));
String element = driver.findElement(By.xpath(“//*[@class=’cke_editable cke_editable_themed cke_contents_ltr cke_show_borders’]/p”)).getText();

Supporter Answered on March 10, 2015.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.