Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8956619
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:49:40+00:00 2026-06-15T14:49:40+00:00

I am using the automation on instruments tools check my application using the java

  • 0

I am using the automation on instruments tools check my application using the java script when i app have two tabbars when i click the second tab via javascript following code

var target = UIATarget.localTarget();

var app = target.frontMostApp();
var window = app.mainWindow();
var tabbar = window.tabBar().buttons()["Product"].tap();
UIALogger.logStart("Logging element tree …");
UIALogger.logPass();

its worked perfectly. In the product tab have one UITableviewcontroller now i am write the javascript for click the tableview cell like as`

tabar.tableviews()[0].cells()[0].tab;

is not worked. how can i handle this issue.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T14:49:42+00:00Added an answer on June 15, 2026 at 2:49 pm

    I don’t think you want to start at the tab bar to find your table view, but I’m not entirely sure I understand your question. I’m working on some UIAutomation scripts as well, so here are a couple of snippets — hopefully one of them is relevant.

    To tap a button in a UIToolBarController I use this:

    var app = target.frontMostApp();
    app.mainWindow().tabBar().buttons()["Saved"].tap(); // The name of the button is "Saved".
    

    You can use the index as well, like [0] for the first tab bar button. On a screen with a UITableView I use this to tap a cell in it:

    app.mainWindow().tableViews()[0].cells()["Name"].tap(); // The cell is named "Name".
    

    Again, you can use an index as well. Note that I don’t start at the tab bar but instead start with the app variable.

    If something’s not working the way you think it should, always log out the tree and take a look at what it contains. That’s always helped me:

    app.mainWindow().tableViews()[0].logElementTree();
    

    The Apple documentation on this has more examples.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I’ve been using the new UI automation tools with Instruments and the iPhone SDK
I’ve been using the new UI automation tools with Instruments and the iPhone SDK
I'm trying to write a test script using automation in xcode 4.5. I have
How can I mannually terminate an excel application using OLE Automation? I would like
Anyone knows how to get selected text from other application using UI Automation and
We are using continuous integration as part of our build automation. For every check
I am using Lua inside C# WinForms application for GUI automation testing. I want
I got an application that automates Microsoft Excel (2003) using Office Automation. One of
I am currently using Instruments via a bash script to initiate the command-line interface
im writing an application using Visual Studio 2010 Express Edition. I have a problem

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.