Problem searching for picture in source

  • Автор темы Автор темы Sun323
  • Дата начала Дата начала

Sun323

Client
Регистрация
14.12.2012
Сообщения
14
Реакции
0
Баллы
1
Hi, I have limited knowledge but have managed to make some working templates.

My problem is I have a site that after selecting a user name will either have a picture popup if its a good username or a line of text if it is not available.

I want to be able to have a logical test for either one. So if picture pops up because user name is good, then logic is true. I did this by searching for URL in source to confirm presence.

The problem is that both the picture and the text saying that username is no good are always in the source. So it always comes up true for either one rather then what appears on the page.

Is there anyway to check for the specific one that pops up on the page after a user name is chosen?

Thanks
 
Try to search not Page.Source but Page.Text
 
I initially tried to check for presence of text on page as that would have been the simpler solution. I did the initial check for the negative response, but it always comes up as if it is showing even when it is not.

The site I'm looking at is: https://www.typepad.com/secure/services/register?acct_level=pro

You can see how when you add a "blog url" it will give you an ok and green check mark to the right if its good and if its no good (type in "sex" or any other spam word) you get "This blog URL is already taken."

I need to confirm either one
 
ed46cb6ece4728c76587a899a4cd3848.png


Work with this element with action designer
Get it's style attribute
if it's "display: block;" then error is visible

http://www.evernote.com/shard/s128/...4a7e9a856329/ec9531a01c108090210703e046722bca
 
Thank you for the quick response. Got it working!
 
Great)
 

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)