Flash :: Selenium Calling The Wrong Methods?

Dec 13, 2010

Seems like sometimes when Selenium should call a certain method, it instead calls another, as pointed out by the following log

[Code]...

I've tried both Selenium server 1.0.3 and the 2.0 alpha 7 versions, they both display this behaviour. FlashSelenium is involved so I'm not sure where along the way lies the bug. Furthermore it's hard to reproduce as it doesn't happen only for some methods, and doesn't always happen.

I've tried searching for issues similar to these but couldn't find any remotely similar... Anyone experienced the same behavior? And if so, is there a fix for it? Edit: I doubt FlashSelenium is at fault for this, as the log tells that the command arrives correctly at the server... But I can't seem to be able to follow the path of execution from the moment the Selenium server gets the command and passes over to the browser, to the moment where it gets the response.

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Flash Class Object Calling Methods

Dec 7, 2009

I have a class file named Main.as and another class called icon.as

package {
import icon;
public class main {
public var _time:String;
function main() {
[Code] .....

How do I get the current update from the main class without calling the MainObj repeatedly. Is this possible in Flash AS3, or any other alternate method for this idea.

View 2 Replies

ActionScript 3.0 :: Calling MVC Inherited Methods ?

Jul 7, 2009

I'm having a hard time calling a method from a particular class within a MVC design pattern. I'm successful at calling the methods from the base (Model) class but haven't been able to call methods from it's subclass (PhotoModel).

My Objective From within the Controller subclass (PhotoController) call a method from my the Model subclass (PhotoModel).

In my document class file I have the following code which connects the two classes together.

PhotoDocument.as

ActionScript Code:
public class PhotoDocument extends MovieClip
{
public var photoModel:PhotoModel;

[Code]....

I thought that defining the model class in this way would declare the PhotoModel class as the model for the PhotoController class, therefore letting me call it's methods and any inherited methods with syntax similar to this; model.method();. Using this syntax I can call the methods in the base Model class but not in the subclass where I've defined additional methods the base Model class does not have.

I've tried a billion different ways to call the methods inside the extended model class but have only a huge pile of failure to show from it.

View 9 Replies

ActionScript 2.0 :: Calling The Timelines Wrong With The Root Handlers?

Jan 26, 2004

I'm having a few problems with the php tutorial. I've got all the actions in my main timeline and calling them using instances. I have a mc called formset with an instance of formset in which is another mc called form with an instance of form which on the mc has the following code -

onClipEvent(data){
// show welcome screen
_root.formset.nextFrame();
}

I have a submit and back buttons with the following syntax -

formset.submit.submitbutton.onRelease = function(){
this.formset.form.loadVariables("email.php", "POST");[code]..........

I've a feeling I'm calling the timelines wrong with the root handlers etc.

View 1 Replies

Media Server :: Calling Client Methods From (FMS 3.5)?

Jul 10, 2009

- Flash Media Server 3.5 (using ActionScript 3 for server-side code)

- Flex application (built in Flex Builder 3, using ActionScript 3)
 
Now, I'm trying to get the server-side ASC code to call something from a connected client.  It doesn't seem to work (thought everything else works beautifully).  I've tried stuff like the following in the server side:
 
- In the application.onConnect function, I've tried this:
 
...
currentClient.requestChat = function (reqID, destID){  trace("Requesting chat...");  currentClient.call("requestWaiting", new reqHandler(), reqID, destID);};
...
 
(Where reqHandler is just some handler that I know gets called).
 
- I've also tried the following code outside the onConnect function:
 
Client.prototype.requestChat = function (reqID, destID){  trace("Requesting chat...");  this.call("requestWaiting", new reqHandler(), reqID, destID);}

Both seem to fire appropriately (when triggered from another client).  However, the "requestWaiting" method call to the clients doesn't seem to work at all.  I've tried some AS 2 examples on the client side, like:
 
nc = new NetConnection();  nc.client = new Object();
// function for handling queueing of requests for this station  nc.client.requestWaiting = function (reqID:String, destID:String):void {        trace("HELLO");    // check to make sure this is the right location, and if so, queue it    if (destID == "WhateverTheIDIs") {    chatQueue.push(reqID);    btnChatWaiting.visible = true;    } // if        }
 
...but that doesn't seem to fire at all.  I know the Flex has "sealed" the NetConnection class itself, so I can't just "extend" it as I do the "client" property.I've als tried some more AS 3-oriented stuff, like trying to make the "client" property reference a separate class that handles callbacks, but that doesn't work easily for me as I need access to properties in the class that contains the NetConnection.

View 2 Replies

Actionscript 3 :: What Does 'calling Methods Directly Instead Of Through A Reference' Mean

Aug 18, 2011

I just went through a slideshow from Grant Skinner on improving performance of ActionScript. One tip he gave was written as, "Call methods directly instead of through a reference." I don't quite understand what this means.Does is mean to avoid making a function call to a variable referencing a function object?[code]Or do avoid making a function call to a variable referencing another object, which possesses that method?[code]

View 2 Replies

ActionScript 3.0 :: Calling Stage Methods From With MovieClip

Dec 14, 2009

Hypothetically, I have a movieclip menu that's created using a class menu.as at runtime. When I instantiate that class on the stage of the main swf, how would I go about telling that stage what to do on a specific click? For instance, if I click button1 on the menu, how do I tell the stage to turn random_object's alpha down to 0?

Important note - buttons in the menu class are loaded dynamically, and there is no way (that I know of) of binding them specifically to event listeners on the main swf stage as in "menu.button1.addEventListener(...)". To summarize my question - how do I control the main stage from within a movieclip, without assigning eventListeners on that main stage?

I have managed to make it work using this method: Inside the class, I add an event listener to each button. On CLICK, the button calls e.currentTarget.root.desiredFunction() where desiredFunction is the function on the main swf stage I want to run. Is there a more efficient or clean way of doing this that anyone knows of?

View 6 Replies

ActionScript 3.0 :: Calling Methods On Javascript Object?

Oct 27, 2010

-I know one can call javascript functions from as3 using ExternalInterface, but in all the examples I've seen the function has been a standalone function on the page. Can methods on objects (that are on the page) be called. E.g: obj.someFunc() rather than just someFunc()?

-The return value can be stored as well using ExternalInterfaces. Can this return value be a javascript object? If so, its methods be called from it directly?

View 6 Replies

ActionScript 3.0 :: Calling Methods Of A Class That Extends MovieClip?

Jan 31, 2010

I've got a class (say ButtonBase) that extends MovieClip. ButtonBase has a method that names it ((this.)name = 'bb1') and adds it to the MainTimeline. Now I can see my extended ButtonBase MC on the MainTimeline. And if from a frame I write trace(this['bb1']), it returns an instance. The problem is that the instance is not recognized as an instance of ButtonBase. Suppose ButtonBase has another method, say testMethod(). Well, if I trace(this['bb1'].testMethod) from a frame on the mainTimeline, it returns undefined. If I trace(this['bb1'] is ButtonBase), > false I can attach a fla if you need it.

View 3 Replies

ActionScript 3.0 :: Calling Preloader Function At The Wrong Place Or Are Objects In The Library Loading First?

Apr 2, 2009

I have a flash project that exports at around 3MB, I am trying to create a preloader for it but it seems to get called after the preloading is complete, there for, making it useless. My stage is empty, nothing on the timeline. The preloading script is called in the main document class. Does anyone know why this isn't working, am I calling my preloader function at the wrong place or are my objects in the library loading first? Here is the code,

[Code]...

View 4 Replies

ActionScript 3.0 :: Write Class So It Passes All Of Its Functions/methods To The Calling Movieclip?

Nov 22, 2010

How do I write my class so it passes all of its functions/methods to the calling movieclip? For example, the following code imports my graphics class and creates a square:

ActionScript Code:
import sprites.vectorGraphics;
var vGX = new vectorGraphics();
var newSquare = vGX.createVector(this, 'square', 'rectangle', 20, 20, 0xff0000, 1, 0x0000ff, true);

That I'd like to be able to do is this:

ActionScript Code:
import sprites.vectorGraphics;
var newSquare = createVector(this, 'square', 'rectangle', 20, 20, 0xff0000, 1, 0x0000ff, true);

View 3 Replies

Flash Automation Using Selenium

Sep 7, 2010

I m struggling a lot to automate flash using selenium.Can any one please give me a sample flash application code (methods) and the selenium code to automate the same.

View 3 Replies

Facebook :: Calling The Javascript And Change The Text In The HTML Page - Error #1033: Cpool Entry 36 Is Wrong Type?

Feb 9, 2010

i use FBML for the FB application.I have a flash and the flash suppose to call a javascript on the page. I read so many websites trying to figure it out but still having problem.Here is the Webpage with the javascript:

<fb:fbjs_bridge/>
<div id="swfContainer"></div>
<script>[code]....

when i test, the flash loaded. The code goes through everything and show "SENT" in the flash text box. However, it doesn't seem like it is calling the javascript and change the text in the HTML page.is there something wrong I did? i try the ExternalInteface.call method but doesn't work neither. ALSO, when i run it in FireFox, not error popup.however, when i run it in IE, I got this:

VerifyError: Error #1033: Cpool entry 36 is wrong type.

ReferenceError: Error #1065: Variable FBJS is not defined.

View 1 Replies

Delete Flash Cookies In A Selenium Script?

Jun 17, 2011

I'm running a selenium script that tests an authenticated application.

The application uses a flash cookie to know if a user is authenticated to the site. Mid-script I need to delete the flash cookie.

I've tried to script the flash player settings page [URL] with no luck.

We use PHPUnit/Selenium if that helps.

View 1 Replies

Taking Screenshot Of Flash Object Using Selenium With Webdriver

Oct 4, 2011

When I take a screenshot using Selenium Firefox Webdriver (yes, Firefox has flash plugin) it doesn't show the flash object. It shows merely a white box instead. Is there something I must do / install?

I'm using this code:

from selenium import webdriver

def webshot(url, filename):
browser = webdriver.Firefox()
browser.get(url)
browser.save_screenshot(filename)
browser.quit()

View 2 Replies

Flash :: Selenium (or Other Record / Playback Tool For Authoring Tests)?

Nov 1, 2010

is there something like Selenium for Flash? Or any other record/playback tool for authoring tests for Flash?

View 3 Replies

ActionScript 2.0 :: Calling Child Movie Methods From A Parent Movie [MX]

Jun 16, 2003

I'm working on a Flash MX application which involves a Parent movie and a Child movie.

I've loaded the Child movie into the Parent movie using LoadMovie. The instance name of the Child movie is Child1.

In the Child movie I have a user-defined function called getChildXML (we don't need to get into more details about the function).

The point here is that I want to call the getChildXML function from the Parent movie. I've tried something like Child1.getChildXML(); but with no luck.

View 4 Replies

Ruby :: Selenium IDE And Telling It To Record Actions?

May 10, 2010

I am trying to make a little application to allow to record actions within a Flash and Silverlight application. In such manner that you can compile your interactive application in test-mode and then be able to click on elements which then passed the action to Selenium IDE which then adds this command to the testcase.I am curious if this even possible and how I can achieve this in Firefox?

View 1 Replies

C# :: Intercepting A Javascript Function Call With Selenium?

Oct 14, 2010

I have a test where I have to check that when a particular item is selected on a web page, the item is loaded into a flash object on the same page. This being done via Javascript. I have to check whether the parameters being passed to flash by Javascript are correct(i.e. the right item is being passed to flash). The only way I can imagine as of now is to intercept these javascript functions and somehow read their parameters.

View 1 Replies

Flex :: Compare QTP / RIATest / Selenium For Application Automation Testing

Dec 4, 2009

which tool should i use QTP, RIATest , Selenium for Flex Application Functional Automation Testing. please help me compare them with different advantages and disadvantages.

View 6 Replies

Ruby On Rails :: Test An Uploadify File Upload With Selenium?

Sep 13, 2011

Is there any way to usefully test an Uploadify file upload with Selenium? I'm using Capybara with Rails, but really, any solution with Selenium would be a starting place. I'm worried I may have to disable Uploadify for Selenium testing.

View 2 Replies

Flash :: Particularly Wrong With Function?

Jan 9, 2012

Is there anything wrong with this function?

[Code]...

View 2 Replies

Actionscript 3 :: Flash Gets XML But The Values Are Wrong

Apr 13, 2010

Flash receives the XML, but the values are wrong. How do I fix this? Problem I can see the XML loaded with no errors, but my output is way off. It's as though it's not receiving any values. Numbers in the output window and animation move rapidly. The Flash file runs as if it's variables where set to zero. I changed the order of my code, but that didn't help with this. how I can correct this.

[Code]...

your problem is that you're calling myLoader.load() and adding an event listener to wait for the xml to finish loading, but you're then immediately setting var delay:uint = 0; and var repeat:uint = 0; and starting the timer. you can see this in your results by the 1, XML, 2, 3, 4 output. the load call is asynchronous so it returns immediately. you need to wait until your processXML function is called before proceeding to the next step.

View 1 Replies

Flash :: Cs5 Building Swf For The Wrong Version

May 11, 2010

I'm using CS5 flash professional to build a swf. I have it publishing to flash 8, actionscript 2. but it will only work with browsers that have 10.1+ plugins, no matter what I try. is there something really obvious that I'm missing? Edit: I'm using swfobject.embed. it looks like this: swfobject.embedSWF("/foo.swf", "myContent", "400", "300", "9.0.0", "/foo.swf", flashvars);

View 2 Replies

Flash :: Document Background Wrong Size

May 11, 2009

I have a flash file that a customer has sent me that needs changing. (It is a flash website header with links to the site pages and a logo above. I have deleted the logo above) One of the problems is the size. I would like to half the size of the document as there is a lot of white space in the top half where I am going to add a static logo to a webpage (with these flash site links below). When I open Flash CS4 and click Modify > Document..., I can change the height dimensions but the white background changes but the whole of the flash movie is now under the document.

How can I change the possition of either the rest of the document or the background of the document to fit under my movie so that the whole document displays as a flash movie at the correct size? Another problem that  I am having is changing the links in the template to the page names that I am using on the site. I don't seem to be able to even find the buttons to make the changes. What ever I do to view them I can't 'see' them when scrolling the time line but when I export or preview the movie all the elements are there.

View 3 Replies

Professional :: Flash Player 10.1 Loading Wrong .swf

Jan 18, 2011

As I didn't find another place for Flash Player 10.1 standalone-subjects (only 10.2. or the browser-players),When I open my .swf with double-click from the finder, it opens in FP 10.1. - but an _older_ project (which is located in a completely different place) will load! And it opens twice No matter, what new .swf I am creating, it's always this old file that will start.When opening the same .swf in FPlayer 9, it works fine.

View 1 Replies

Actionscript 3 :: Flash - StageWidth Wrong In Firefox 3.6?

Apr 20, 2011

I have a full-windowed SWF running in Firefox3.6.Reading stage.stageWidth should follow the size of the browser's window, but that's not the case with Firefox! The minimum stage.stageWidth I get is 925, even if I make the Firefox window much smaller than that.stage. stageHeight seems to work fine though.This is because the (my?) Menu Bar won't go below 925 pixels wide. The problem is solved if I hide the Menu Bar!

This problem only appears on Firefox. Anyone knows if there is a work around? I can't ask users visiting my site to turn their menu bar off in order to see it correctly.

View 1 Replies

Flash :: Button In TitleWindow Has Wrong Color?

May 25, 2011

I've got a TitleWindow with 2 buttons in it. One button is in the contentgroup and the other in the controlbargroup. Titlewindow and buttons are styled with chromecolor.

Why has the button in den controlbar not a red color? How can I get a red button?

[Code]...

View 1 Replies

Flash :: Itemrenderer In Datagrid Wrong Display?

Jun 20, 2011

I have a datagrid with an itemrenderer component.In the itemrenderer is a button which should be displayed in every second row of the datagrid.It appears that way after compiling.As soon as I scroll the datagrid the buttons are displayed incorrectly, why??

Link to image
<fx:Script>
<![CDATA[

[code]....

View 1 Replies

ActionScript 2.0 :: PHP - Flash Log In Form - Returned Value Is Wrong

Jan 22, 2008

Login Form: I send Login and Password from Flash to PHP. PHP accepts those values, checks them against the database, and then... returns something weird to flash. Instead of just returning "true" (if the password is correct) or "false" (if the password in not correct), PHP returns one of those values AND whatever comes after that value, including even the closing PHP tag ?> .... I know it because I trace the returned value in Flash. I need your help with my scripts. This is my Flash button, sending the values to PHP.

[Code]...

View 11 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved