problem about ui-automation-Collection of common programming errors


  • dtuckernet
    iphone ios ios-simulator ui-automation ios-ui-automation
    I’ve been using the new UI automation tools with Instruments and the iPhone SDK 4.0, but so far I haven’t been able to get it to run under the iPhone Simulator. I’ve tried setting the target to every location possible-my build folder, the app folder in ~/Library/Application Support/iPhone Simulator, etc.-but I get an error message when I try to run it:Unexpected error in -[UIATarget_0x5a1e3b0 frontMostApp], /SourceCache/UIAutomation_Sim/UIAutomation-37/Framework/UIATargetElements.m line 437,Has

  • Dirk
    c# selenium internet internet-explorer-10 ui-automation
    I tried the code below a 100 times and still get this error:Unexpected error launching Internet Explorer. Could not get document from window handle (NoSuchDriver)Not much on this error except the Protected Zone sync which is worthless.InternetExplorerOptions options = new InternetExplorerOptions(); options.IntroduceInstabilityByIgnoringProtectedModeSettings = true; IWebDriver driver = new InternetExplorerDriver(pathContainingIEDriverServer, options);driver.Navigate().GoToUrl(“http://www.google.c

  • Fraser
    c# silverlight accessibility ui-automation screen-readers
    Silverlight does a good job of making the automation tree accessible, but is there a way to programatically ask a screen reader to read something? Up until now I’ve been using:AutomationPeer peer = FrameworkElementAutomationPeer.FromElement(element);if (peer == null){peer = FrameworkElementAutomationPeer.CreatePeerForElement(element);}if (peer != null){peer.RaiseAutomationEvent(AutomationEvents.AutomationFocusChanged);}This works fine under the debug Silverlight runtime (ie if I launch IE from i

  • Mr. Bungle
    wpf silverlight ui-automation acceptance-testing
    The AutomationProperties.AutomationId attached property seems to have two purposes:Identifying UI controls during automated acceptance tests. Accessibility. Given that there are many cases when UI controls are generated at runtime (e.g. data-bound treeviews) which force the acceptance tests to search for controls using other means, when does it make sense to actually set a value for AutomationId, and what value? Is it an abitrary process to decide which controls should have them and which shou

  • Rohit Jindal
    android adb ui-automation
    I am not able to run adb command in UI Automator. When I run a adb command usingRuntime r=Runtime.getRuntime().exec(“adb devices”);I get the following error: Error executing exec: Command:(adb services), Working Directory null, environment=nullI really need to run a adb command in my UI AutomatorThanks in Advance

  • Leigh
    flex3 ui-automation inspect
    I have an old Flex 3 based application, which has quite some tabs and text fields that I want to inspect using 3rd party tools. By term “inspect”, I mean to see through the runtime value of certain text field and capture the runtime click stream event such as when the user click the submit button on a page, something like that. The purpose of this effort is to dynamically copy/paste data from this Flex 3 based application to another window form based application without the need of either applic

  • lysergic-acid
    c# automation watin ui-automation
    We are working on automation various different web/client applications, using several different frameworks (WatiN, Ranorex for example).My question is — what are the for/against for storing the actual object identification (the properties used to identify it at runtime) in the code (using attributes or whatever other mechanism), or extracting it to an external configuration file that will be read by the code executing.

  • Xeno
    c# .net ui-automation automationelement
    One application I’m automating some tests for is initializing a Text field (UIA_TextControlTypeId(0xC364)) and the developer has it set to initialize as a blank “” for its contents and corresponding Name.At runtime they update this text field with a few sentences, and I am unable to see this update in inspect.exe or in my own AutomationElement object. Is there a way to “getText” other than AutomationElement.Current.Name or variants thereof? The only Pattern Available on the AutomaitonElement is

  • aryaxt
    android ui-automation robotium
    I am running UIAutomation for android using Robotium and ActivityInstrumentationTestCase2. I have a test suite with 5 tests. Sometimes my test randomly crash because a test starts, once the previous test has not ended yet. Is there a way to avoid this? is it possible to manually add a 10 second delay before every test to get away from this horrible annoying bug?EDIT:public class MyTest<T extends RoboActivity> extends ActivityInstrumentationTestCase2<T> {protected Solo solo;@Overridep

  • kol
    android ios ui-automation galaxy packet-capture
    I have to regularly test the availability and functioning of a movie rental website. I wrote a Windows program which is able to automate a web browser according to a script, so this task is basically solved. Now I have to automate the mobile version of this web application: a native iOS app and a native Android app. These apps are closed source, so cannot be modified in any way. I think the test app should be deployed on the test devices (iPhone, iPad, Galaxy Tab, Galaxy S II), but I must be abl

  • nelshh
    c# .net automation ui-automation
    I have a small tray application which registers a system-wide hotkey. When the user selects a text anywhere in any application and presses this hotkey I want to be able to capture the selected text. I’m currently doing this using AutomationElements://Using FocusedElement (since the focused element should be the control with the selected text?) AutomationElement ae = AutomationElement.FocusedElement; AutomationElement txtElement = ae.FindFirst(TreeScope.Subtree,Condition.TrueCondition); i

  • dmck
    ios-simulator instruments ui-automation recorder
    I’m currently recording a lot of test for my App using Xcode Instruments UIAutomation, the current issue I’m facing is that if I run more than one script at the time or even 1 script but with the simulator currently running is just crashes.Is there a command or any other way to close the simulator every single time a test script finishes?

  • Anthony Mastrean
    ui-automation logfiles ui-spy
    I had UI Spy (UISpy.exe) crash. I closed the program and didn’t even look at the stack trace in the error message. Does UI Spy produce a log? Is there a way to retrieve this previous failure if there is not a log file? I checked the system event viewer, and did not see any errors there.

  • nschum
    iphone ios testing ui-automation ios-ui-automation
    I have had some strange, hard to reproduce crashes, when testing my app with an ad-hoc version on my iPhone. The crashes happened after changing from my app to the dashboard (or other app) and then changing back to the app again.Is there a way to use UIAutomation in a way to perform these changes automatically?Thanks in advance.

  • Bar
    c# winapi ui-automation sendmessage windows-controls
    I’ve used spy++ to find the right handle of the wanted windows control, which belongs to a standalone application which isn’t managed. Note that the spy++ “property inspector” mentions that this window doesn’t have any child (or parent) windows.I’ve also managed to get back the name of the window with the following code://the invokes are included aswellconst int WM_GETTEXT = 0x000D;static void Main(string[] args){IntPtr handle = new IntPtr(Convert.ToInt32(“00070818”, 16)); int nChars = GetWindo

  • Rene Willems
    c# visual-studio-2012 ui-automation coded-ui-tests
    I have a problem running CodedUI tests though Visual Studio 2012 Ultimate) and hoping someone is able to help me out. I’m totally lost.I’m currently working on a Windows 2008 R2 machine (64 bit). For creating CodedUI tests I’m using Visual Studio 2012. I’ve installed all latest updates, including Internet Explorer version 10. When running a CodedUI testen in Visual Studio 2012 I get the following error message :TechnologyNotSupportedExeption was unhandled by user code. Testing web application

  • shrimpy
    c# selenium2 ui-automation
    try to play with Selenium, created a very simple examplestatic void Main(string[] args){using (IWebDriver driver = new InternetExplorerDriver()){driver.Navigate().GoToUrl(“https://gmail.com”);IWait<IWebDriver> wait = new WebDriverWait(driver, TimeSpan.FromSeconds(2.00));wait.Until(d => ExpectedConditions.ElementExists(By.Id(“Email”)));Console.WriteLine(“Page loaded …”);IWebElement userNameElt = driver.FindElement(By.Id(“Email”));while (!userNameElt.Displayed){Console.WriteLine(“Page n

  • Trystan
    silverlight exception-handling automation ui-automation white
    I am using the white automation API to test a silverlight app, but when an unhandled exception occurs in silverlight I don’t know of a way to report this back to the unit test or check in the white api to see if there was an exception. Anyone got a way to do this?

  • fogwolf
    ios ui-automation ios-ui-automation
    I think this is a first – I’m getting an error and the exception constant that I’m getting back returns nothing when I search for it on Google.Basically I’m trying to run UI Automation on my iOS app from the CLI and am getting the following error message:2013-02-22 13:12:17.820 ScriptAgent[16626:2e07] +[UIAXElement initialize]: UIAutomation never received kAXAccessibilityLoaded. Waited 20.02 seconds.2013-02-22 13:12:17.826 ScriptAgent[16626:2e07] Unexpected error in -[UIAXElement_0xad343c initi

  • codemau5
    ui-automation ios-ui-automation
    For this line of test code : view.scrollViews()[0].tapWithOptions({tapOffset:{x:0.32, y:0.25}})I am getting this error 2012-11-02 18:09:23 +0000 None: Script threw an uncaught JavaScript error: target.frontMostApp().mainWindow().scrollViews()[0] could not be tapped on line 244 of feature.js 2012-11-02 18:09:23 +0000 Debug: target.frontMostApp().mainWindow().scrollViews()[0].tapWithOptions({tapOffset:{x:”0.32″, y:”0.25″}}) 2012-11-02 18:09:23 +0000 Debug: target.frontMostApp().mainWindow().scroll

  • pixel
    android ui-automation android-testing
    When I run my android UIAutomator code, it shows following error.INSTRUMENTATION_RESULT: shortMsg=java.lang.RuntimeExceptionINSTRUMENTATION_RESULT: longMsg=com.android.ui.testingINSTRUMENTATION_CODE: 0I just ran the sample code given in developer.android.com How to solve this error?Log attached below:01-05 01:07:53.559: D/AndroidRuntime(5712): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<< 01-05 01:07:53.559: D/AndroidRuntime(5712): Che

  • folium
    iphone ui-automation
    I use UI Automation to test an iPhone app. My “Add” button cannot be tapped. Is there anything else that must be enabled to make this work?Error: Script threw an uncaught JavaScript error: target.frontMostApp().toolbar().buttons()[0] could not be tapped. I can see the button in the Elements trace: Automation Script:var toolbar = UIATarget.localTarget().frontMostApp().toolbar();toolbar.buttons()[0].tap();toolbar.buttons()[“Add”].tap(); (have tried both lines above)Xcode:- (void)configureToolbarIt

  • Ortwin Gentz
    iphone ios instruments ui-automation ios-ui-automation
    I tried the tapAndHold() function from UIAElementvar target = UIATarget.localTarget(); target.frontMostApp().mainWindow().buttons()[“Button”].tapAndHold() target.captureScreenWithName(“shot”)but this fails with a JavaScript error: ‘undefined’ is not a function (evaluating target.frontMostApp().mainWindow().buttons()[“Button”].tapAndHold().Update:I also triedtarget.frontMostApp().mainWindow().buttons()[“Button”].touchAndHold(1.5) target.captureScreenWithName(“shot”)which at least does highlight t

  • Jonathan Sternberg
    c# hudson ui-automation
    For a project I have to start an application in C#, rip out the AutomationElement tree related to the process, and then close the application and output the tree. I’m doing this by opening the application using Process.Start. Then I’m finding the AutomationElements related to the spawned process and walking the tree using a combination of TreeWalker and AutomationElement’s FindFirst and FindAll methods.This runs fine on my computer and runs correctly using NUnit locally. It also runs on the othe

Web site is in building