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
nukie
Posts : 3
Join date : 2009-09-18

Calling isTextPresent Empty Calling isTextPresent

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!
Advisor
Advisor
------------------------
------------------------
Posts : 387
Join date : 2009-07-30
Location : India
https://seleniumforum.forumotion.net

Calling isTextPresent Empty Re: Calling isTextPresent

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
nukie
Posts : 3
Join date : 2009-09-18

Calling isTextPresent Empty Re: Calling isTextPresent

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?
Advisor
Advisor
------------------------
------------------------
Posts : 387
Join date : 2009-07-30
Location : India
https://seleniumforum.forumotion.net

Calling isTextPresent Empty Re: Calling isTextPresent

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
nukie
Posts : 3
Join date : 2009-09-18

Calling isTextPresent Empty Re: Calling isTextPresent

Fri Sep 18, 2009 5:06 pm
Yeah!
That was it !
One more success story ! )
Thanks a lot!!
Calling isTextPresent Icon_bounce
avatar
kirankk
Posts : 1
Join date : 2010-03-20

Calling isTextPresent Empty new mail

Sat Mar 20, 2010 11:36 pm
how to write mail in gmail with selenium test.,
Sponsored content

Calling isTextPresent Empty Re: Calling isTextPresent

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