Re: Scene activation

3 views
Skip to first unread message
Message has been deleted
Message has been deleted

Sean Kline

unread,
Sep 15, 2008, 2:29:51 PM9/15/08
to swexplorer...@googlegroups.com
Is there a limit to the amount of scenes you can have without purchasing the product?

Alex Furman

unread,
Sep 15, 2008, 2:30:31 PM9/15/08
to swexplorer...@googlegroups.com
There is not limit.


Date: Mon, 15 Sep 2008 14:29:51 -0400
From: kline...@gmail.com
To: swexplorer...@googlegroups.com
Subject: Re: Scene activation

Sean Kline

unread,
Sep 15, 2008, 2:35:08 PM9/15/08
to swexplorer...@googlegroups.com
I really see no reason at all why this specific Scene wont activate. Every other scene is fine but for some reason this won will never activate. Iv double checked everything

kline...@gmail.com

unread,
Sep 15, 2008, 2:54:57 PM9/15/08
to SWExplorerAutomation
Also im looking for some kind of wait while page is busy. Currently i
have this code that works

Do while xlWorkSheet.cells(x,7).value <> ""
... Enter Data ...
System.Threading.Thread.Sleep(1000)
Do while scene.IsActive = False
if explorermanager("scene_4").isactive then
scene=explorermanager("Scene_4")
scene.HtmlAnchor("HtmlAnchor_0").Click()
Else
scene = explorermanager("Scene_5")
scene.HtmlAnchor("HtmlAnchor_0").Click()
End if
Loop
Loop


That works but if the page takes longer then the sleep time it breaks
the code. I would love to have
sub WaitForpage
do while webpage.isbusy = true
wait 0.2
loop
End sub

If i could call a WaitForPage command like that it would be ideal

Alex

unread,
Sep 15, 2008, 4:01:42 PM9/15/08
to SWExplorerAutomation
To wait for multiple scenes you should use

scene[] activeScenes =
explorerManager.WaitForActive("scene_4,scene_5", timeout)

if activeScenes(0).NAme = "Scene_4" then
else
if activeScenes(0).Name = "Scene_5"
endif
end if


On Sep 15, 2:54 pm, "klinena...@gmail.com" <klinena...@gmail.com>
wrote:

Sean Kline

unread,
Sep 15, 2008, 4:12:48 PM9/15/08
to swexplorer...@googlegroups.com
Im assuming in vb.net it would look something like

dim activeScenes as explorerManager.WaitForActive("Scene_4","Scene_5",30000)

Except it seems that you cant wait for two scenes

Alex Furman

unread,
Sep 15, 2008, 4:18:12 PM9/15/08
to swexplorer...@googlegroups.com
Dim scenes(1) As String
scene(0) = "Scene_4"
scene(1) = "Scene_5"
dim activeScenes as explorerManager.WaitForActive(scenes,30000)



Date: Mon, 15 Sep 2008 16:12:48 -0400

From: kline...@gmail.com
To: swexplorer...@googlegroups.com
Subject: Re: Scene activation

Sean Kline

unread,
Sep 15, 2008, 4:32:33 PM9/15/08
to swexplorer...@googlegroups.com
It says array bounds cannot appear in type specifiers.

Alex Furman

unread,
Sep 15, 2008, 4:39:37 PM9/15/08
to swexplorer...@googlegroups.com
Dim scenes() As String = {"Scene_4", "Scene_5"}
Dim scenesArr() as Scene = explorerManager.WaitForActive(scenes, 30000)



Date: Mon, 15 Sep 2008 16:32:33 -0400

From: kline...@gmail.com
To: swexplorer...@googlegroups.com
Subject: Re: Scene activation

Sean Kline

unread,
Sep 15, 2008, 4:44:05 PM9/15/08
to swexplorer...@googlegroups.com
That works perfectly, thank you. Im sure other will find that useful too

Sean Kline

unread,
Oct 8, 2008, 9:59:55 AM10/8/08
to swexplorer...@googlegroups.com
I keep getting a NullReferenceException was unhandled. When i use

If activescenes(0).name = "Scene_3"

Alex Furman

unread,
Oct 8, 2008, 11:06:49 AM10/8/08
to swexplorer...@googlegroups.com
It means that none of the scenes was activated.


Date: Wed, 8 Oct 2008 09:59:55 -0400

From: kline...@gmail.com
To: swexplorer...@googlegroups.com
Subject: Re: Scene activation


Sean Kline

unread,
Oct 8, 2008, 11:16:04 AM10/8/08
to swexplorer...@googlegroups.com
So if i put every scene in the project in the array it will find something?

Alex Furman

unread,
Oct 8, 2008, 11:18:40 AM10/8/08
to swexplorer...@googlegroups.com
Do you use ExplorerManager.WaitForActive function? SWEA only activates scenes which match the page.


Date: Wed, 8 Oct 2008 11:16:04 -0400

From: kline...@gmail.com
To: swexplorer...@googlegroups.com
Subject: Re: Scene activation

Sean Kline

unread,
Oct 8, 2008, 11:44:05 AM10/8/08
to swexplorer...@googlegroups.com
It only works if you tell it what scene is coming by using scene = explorermanager("Scene_3")

Alex Furman

unread,
Oct 8, 2008, 11:47:04 AM10/8/08
to swexplorer...@googlegroups.com
 Have you tried to use explorerManager.WaitForScenes?


Date: Wed, 8 Oct 2008 11:44:05 -0400

From: kline...@gmail.com
To: swexplorer...@googlegroups.com
Subject: Re: Scene activation

Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages