RE: Web page text

4 views
Skip to first unread message
Message has been deleted

Alex Furman

unread,
Sep 16, 2008, 1:12:59 PM9/16/08
to swexplorer...@googlegroups.com

SWEA creates HtmlAnchor control for <A> tag. It is possible that the link is not <A> tag.  You can use SWEA DOM navigator to inspect the DOM tree. If "Preview Control Selection" is checked SWEA editor will not create a control automatically. Instead the DOM tree will be navigated to the selected HTML element.


> Date: Tue, 16 Sep 2008 08:06:46 -0700
> Subject: Web page text
> From: kline...@gmail.com
> To: swexplorer...@googlegroups.com
>
>
> There is text on a webpage that when clicked is a link but it cant be
> added as an Anchor with SWexplorer. It just keeps coming up as
> HtmlContent every time
>

Sean Kline

unread,
Sep 16, 2008, 1:24:48 PM9/16/08
to swexplorer...@googlegroups.com
It says its a <TD> tag

<TD
class=classNavTrackerFixedMenuItemCell style = "BACKGROUND-COLOR:#00ff00" noWrap colSpan=2>Eligibility and Benefits Inquiry</TD>

Alex Furman

unread,
Sep 16, 2008, 3:22:10 PM9/16/08
to swexplorer...@googlegroups.com
It explains why HtmlContent control was created. For the control you can record Invoke actions (Click, MouseClick) by using SWDesigner Invoke tab.


Date: Tue, 16 Sep 2008 13:24:48 -0400
From: kline...@gmail.com
To: swexplorer...@googlegroups.com
Subject: Re: Web page text

Sean Kline

unread,
Sep 16, 2008, 3:27:46 PM9/16/08
to swexplorer...@googlegroups.com
I dont know why i didnt think of that ealier. Thanks for your help

Sean Kline

unread,
Sep 16, 2008, 3:45:06 PM9/16/08
to swexplorer...@googlegroups.com
Now ive come to a page where there is a frame with text on it and it cant added to project view

Alex Furman

unread,
Sep 16, 2008, 4:29:47 PM9/16/08
to swexplorer...@googlegroups.com
SWEA supports frames and iframes. Can you highlight the frame elements?


Date: Tue, 16 Sep 2008 15:45:06 -0400

From: kline...@gmail.com
To: swexplorer...@googlegroups.com
Subject: Re: Web page text

Sean Kline

unread,
Sep 16, 2008, 4:30:25 PM9/16/08
to swexplorer...@googlegroups.com
I can highlight it but it wont turn green

Alex Furman

unread,
Sep 16, 2008, 4:41:30 PM9/16/08
to swexplorer...@googlegroups.com
Have you tried to automate any other page with frames?  Is it possible to reproduce the problem?


Date: Tue, 16 Sep 2008 16:30:25 -0400

From: kline...@gmail.com
To: swexplorer...@googlegroups.com
Subject: Re: Web page text

Sean Kline

unread,
Sep 16, 2008, 4:43:18 PM9/16/08
to swexplorer...@googlegroups.com
Im not sure that the problem is with the fact that it has frames i guess SWEA cant find the HTML for the text that i need.

Alex Furman

unread,
Sep 16, 2008, 4:44:43 PM9/16/08
to swexplorer...@googlegroups.com
Have you tried to use SWEA DOM navigator to create control? Do you see the frame in the DOM navigator?


Date: Tue, 16 Sep 2008 16:43:18 -0400

From: kline...@gmail.com
To: swexplorer...@googlegroups.com
Subject: Re: Web page text

Sean Kline

unread,
Sep 17, 2008, 8:50:33 AM9/17/08
to swexplorer...@googlegroups.com
I  dont see it in the dom navigator i can send you the source if it will help.

Sean Kline

unread,
Sep 17, 2008, 10:13:43 AM9/17/08
to swexplorer...@googlegroups.com
Ive replicated the problem and i think the problem is that SWexplorer cant activate the scene. I was able to grab text as an htmlcontent then when i searched another patient it wouldnt let me select text anymore. It worked about 3 times then wouldnt work after that

Alex Furman

unread,
Sep 17, 2008, 3:19:53 PM9/17/08
to swexplorer...@googlegroups.com
Have you tried to log the identification messages from explorerManager error handler? If a scene was not activated SWEA will fire the Error event handler.   The identification messages can help to troubleshoot the problem.


Date: Wed, 17 Sep 2008 10:13:43 -0400

From: kline...@gmail.com
To: swexplorer...@googlegroups.com
Subject: Re: Web page text

Sean Kline

unread,
Sep 17, 2008, 3:21:39 PM9/17/08
to swexplorer...@googlegroups.com
May i ask why SWEA uses scenes in the first place?

Sean Kline

unread,
Sep 17, 2008, 3:30:39 PM9/17/08
to swexplorer...@googlegroups.com
I seem to have another problem I forgot that this certain page has links that end in numbers that arent consistent. This one is called ms_id78 and then i clicked it again and it became ms_id94. In another program i was using i just added an asterisk after id and it would work

Alex Furman

unread,
Sep 17, 2008, 3:34:40 PM9/17/08
to swexplorer...@googlegroups.com
You have to update the Scene descriptor. It contains UrlPattern which is a regular expression.
For example:

http://by19fd\.bay19\.hotmail\.msn\.com/cgi-bin/HoTMaiL\?curmbox=(.*) &a=(.*)&fti=yes



 


Date: Wed, 17 Sep 2008 15:30:39 -0400

From: kline...@gmail.com
To: swexplorer...@googlegroups.com
Subject: Re: Web page text


Alex Furman

unread,
Sep 17, 2008, 3:37:26 PM9/17/08
to swexplorer...@googlegroups.com
Scenes allow automation program to be tolerant to UI changes. UI changes very often. Without scenes every change to UI will lead to code change. With scenes in most cases only control binding should be changed.


Date: Wed, 17 Sep 2008 15:21:39 -0400

From: kline...@gmail.com
To: swexplorer...@googlegroups.com
Subject: Re: Web page text

Sean Kline

unread,
Sep 17, 2008, 3:38:52 PM9/17/08
to swexplorer...@googlegroups.com
Is there a way for me to only work with code and not scenes? With the websites im working with the UI doesnt change very often

Sean Kline

unread,
Sep 17, 2008, 3:47:37 PM9/17/08
to swexplorer...@googlegroups.com
Your software is faster and cheaper then the software we were using. I do web automation all day on healthcare websites. I just want to make sure that i will be able to find a work around for whatever problems should occur. Things are looking good though, my company should be purchasing the $999 license if all goes well

Alex Furman

unread,
Sep 17, 2008, 4:49:07 PM9/17/08
to swexplorer...@googlegroups.com

SWEA is fastest IE automation framework. SWEA provides little overhead to IE (SWEA IE engine is C++ code).

We added scenes because we needed automation to be predictable. You can’t simply click a button. You should be sure that the button is on a right page. The Web application can redirect to wrong page and a click on a button can lead to unpredictable errors. SWEA provides API (scenes and controls) to a Web application and takes care about the control binding. The scene binding is controled by SceneDescriptor. The control binding is controled by ControlDescriptor. The control can be bound by Html Id, Html Name and XPath. By default SWEA generates absolute XPATH expression. If a control  position "floats" on a page it is possible to use "relative" XPATH expressions.

For example://A[contains(text(), 'some link text')]  will bind HtmlAnchor to <A>some link text</A> tag.


 


Date: Wed, 17 Sep 2008 15:47:37 -0400

From: kline...@gmail.com
To: swexplorer...@googlegroups.com
Subject: Re: Web page text


Sean Kline

unread,
Sep 18, 2008, 9:51:55 AM9/18/08
to swexplorer...@googlegroups.com
What would cause a scene a very long time to activate?

Sean Kline

unread,
Sep 18, 2008, 10:13:36 AM9/18/08
to swexplorer...@googlegroups.com
I got rid of the waitforactive(30000) and it took care of it

Alex Furman

unread,
Sep 18, 2008, 12:40:22 PM9/18/08
to swexplorer...@googlegroups.com
Scene may not be activated if it failed to activate (ExplorerManager error event  is fired) or IE doesn't fire the "complete" events. 

 


Date: Thu, 18 Sep 2008 09:51:55 -0400

From: kline...@gmail.com
To: swexplorer...@googlegroups.com
Subject: Re: Web page text


Sean Kline

unread,
Sep 18, 2008, 1:17:58 PM9/18/08
to swexplorer...@googlegroups.com
It activates it just takes the entire wait time to do it

Alex Furman

unread,
Sep 18, 2008, 1:19:32 PM9/18/08
to swexplorer...@googlegroups.com
To monitor the actual scene activation  you can subsribe to explorerManager.SceneActivated/SceneDeactivated events


Date: Thu, 18 Sep 2008 13:17:58 -0400

From: kline...@gmail.com
To: swexplorer...@googlegroups.com
Subject: Re: Web page text

Sean Kline

unread,
Sep 18, 2008, 1:22:02 PM9/18/08
to swexplorer...@googlegroups.com
How do i do that?

Alex Furman

unread,
Sep 18, 2008, 1:24:16 PM9/18/08
to swexplorer...@googlegroups.com
AddHandler explorerManager.SceneActivated, AddressOf SWExplorerAutomationExamples.CodeTemplate.explorerManager_SceneActivated

Date: Thu, 18 Sep 2008 13:22:02 -0400

From: kline...@gmail.com
To: swexplorer...@googlegroups.com
Subject: Re: Web page text

Sean Kline

unread,
Sep 18, 2008, 1:26:13 PM9/18/08
to swexplorer...@googlegroups.com
Thank you, im still coming back to the fact that i need a way to wait until the webpage is done loading to do things. I cant use waitforactive because sometimes i dont know what scene needs to be activated until the page is done loading.

Alex Furman

unread,
Sep 18, 2008, 3:59:08 PM9/18/08
to swexplorer...@googlegroups.com
In this case you should use manual identification. It is combination of:
explorerManager.RunIdentification() and scene.WaitForActive.

 


Date: Thu, 18 Sep 2008 13:26:13 -0400

From: kline...@gmail.com
To: swexplorer...@googlegroups.com
Subject: Re: Web page text


Sean Kline

unread,
Sep 18, 2008, 4:01:31 PM9/18/08
to swexplorer...@googlegroups.com
Ive been using explorermanager.runidentfication

Alex Furman

unread,
Sep 18, 2008, 4:51:55 PM9/18/08
to swexplorer...@googlegroups.com
If explorermanager.runidentfication failed (Scene was not activated) than explorermanager error event will be called with an error message. The error message contains a detailed information about the identification problem.




To: swexplorer...@googlegroups.com
Subject: Re: Web page text

Ive been using explorermanager.runidentfication

Sean Kline

unread,
Sep 19, 2008, 9:35:58 AM9/19/08
to swexplorer...@googlegroups.com
I have a feeling that nothing other than a wait while website is busy is going to work for this website. With waitforactive it doesnt wait until its done it waits until the time is up. I cant figure out any other way to only make it wait until the page is done being loaded

Sean Kline

unread,
Sep 22, 2008, 12:42:02 PM9/22/08
to swexplorer...@googlegroups.com
Is there a way to use "on error goto" with SWEA
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages