Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Selenium WebDriver Integration
Yesterday at 1:06 pm by azharuddin

» how to connect DB in selenium webriver
Fri Oct 06, 2017 4:09 pm by anbarasi

» How find any text in browser screen and click on it?
Thu Oct 05, 2017 2:02 pm by sandeepkommineni

» Selenium Webdriver
Tue Oct 03, 2017 1:35 pm by PiyushBiswas

» GRID setup tutorial.
Wed Sep 27, 2017 4:29 pm by johnyapp

» Drag & Drop Between Windows Using Selenium Driver
Wed Sep 27, 2017 2:10 pm by 26rondel

» Check if window is closed / verify input
Sat Sep 23, 2017 10:21 pm by brainstir

» How to work on pages with AJAX in selenium?
Mon Sep 18, 2017 6:08 pm by azharuddin

» pause test until user press a key like F2
Wed Aug 09, 2017 11:10 pm by djnforce

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Calling isTextPresent

View previous topic View next topic Go down

Calling isTextPresent

Post by nukie on Fri Sep 18, 2009 2:38 pm

Hi!
I have problem calling isTextPresent.
It's simply not working for any test on my page. (all navigation actions, isElementPresent works). But all isTextPresent Fails =(.

Do you have any suggestions, why it could be?

Application is google maps + yahoo user interface based. Tested on IE8, FF3.0, FF3.5. Selenium RC 1.01.

Thanks for Your time!

nukie

Posts : 3
Join date : 2009-09-18

Back to top Go down

Re: Calling isTextPresent

Post by Adviser on Fri Sep 18, 2009 4:02 pm

hi,

What type of parameter you are giving in is text present?

I think you are giving element xpath instead of actual text.

Example:

isElementPresent | //div[@id='hp']/table/tbody/tr[2]/td // this contain text "last modify". this will be working fine.

isTextPresent|//div[@id='hp']/table/tbody/tr[2]/td // this will find the text which you are giving in target as your xpath. It is fincing your xpath on browser as text.

To solve the problem use actual text instead of xpath in locator say
isTextPresent| "Last Modify"

Hope this will help u. best of luck.

bye
avatar
Adviser
------------------------
------------------------

Posts : 379
Join date : 2009-07-30
Location : India

http://seleniumforum.forumotion.net

Back to top Go down

Re: Calling isTextPresent

Post by nukie on Fri Sep 18, 2009 4:20 pm

Thanks, but i dont =(
I have defined actual text in it.

Could selenium have problems with it because of iframes or something?

nukie

Posts : 3
Join date : 2009-09-18

Back to top Go down

Re: Calling isTextPresent

Post by Adviser on Fri Sep 18, 2009 4:33 pm

yes, there is problem in Iframe, you have to first select the frame then verify the text and after verifying get focus back to the original window or page.

Use following commands:

selenium.selectFrame(id Of frame)
verifyText present in iframe.
Selenium.selectWindow(null);

Hope this will solve your problem.
avatar
Adviser
------------------------
------------------------

Posts : 379
Join date : 2009-07-30
Location : India

http://seleniumforum.forumotion.net

Back to top Go down

Re: Calling isTextPresent

Post by nukie on Fri Sep 18, 2009 5:06 pm

Yeah!
That was it !
One more success story ! )
Thanks a lot!!

nukie

Posts : 3
Join date : 2009-09-18

Back to top Go down

new mail

Post by kirankk on Sat Mar 20, 2010 11:36 pm

how to write mail in gmail with selenium test.,

kirankk

Posts : 1
Join date : 2010-03-20

Back to top Go down

Re: Calling isTextPresent

Post by Sponsored content


Sponsored content


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