Visual Relations, Part 2 Advanced Visual Analysis.

Slides:



Advertisements
Similar presentations
Chapter 3 – Web Design Tables & Page Layout
Advertisements

For suggestions about how Talk Factory can be incorporated into lessons on investigating evaporation please see the associated lesson plans on the Talk.
Computer Science & Engineering 2111 Text Functions 1CSE 2111 Lecture-Text Functions.
Principles of Web Design 5 th Edition Chapter Nine Site Navigation.
CareCentrix Direct Training.
PowerPoint. Getting Started with PowerPoint Objectives Start PowerPoint and open presentations Explore toolbars and menus Use the Office Assistant Work.
Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.
Talk Factory Primary Generic: instructions for use Supporting children‘s whole class discussions in primary school Copyright 2011 Open University.
My First UFT Script.
XP New Perspectives on Microsoft Office Excel 2003, Second Edition- Tutorial 5 1 Microsoft Office Excel 2003 Tutorial 5 – Working With Excel Lists.
Customizing Word Microsoft Office Word 2007 Illustrated Complete.
Tutorial 8 Designing a Web Site with Frames. XP Objectives Explore the uses of frames in a Web site Create a frameset consisting of rows and columns of.
Introduction to Visual Basic What it is, and a simple program Mike Thelwall University of Wolverhampton, UK.
Graphing Linear Equations From the beginning. All the slides in this presentation are timed. You do not need to click the mouse or press any keys on the.
Creating Web Page Forms
SELF TEST TUTORIAL Taking an Exam What you need to get started.
XP 1 Microsoft Office Excel 2003 Tutorial 3 – Working With Excel Lists.
Microsoft Visual Basic 2010: Reloaded Fourth Edition Chapter Ten String Manipulation and Menus.
Java Programming, 2E Introductory Concepts and Techniques Chapter 2 Creating a Java Application and Applet.
McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved. 1-1.
Microsoft Visual Basic 2008 CHAPTER NINE Using Arrays and File Handling.
Microsoft Visual Basic 2005 CHAPTER 9 Using Arrays and File Handling.
Java: Chapter 1 Computer Systems Computer Programming II.
Microsoft Visual Basic 2010: Reloaded Fourth Edition Chapter Six Repeating Program Instructions.
Using Arrays and File Handling
PMS /134/182 HEX 0886B6 PMS /39/80 HEX 5E2750 PMS /168/180 HEX 00A8B4 PMS /190/40 HEX 66CC33 By Adrian Gardener Date 9 July 2012.
Greenfoot. Getting Started Open the Greenfoot download site: Select Greenfoot
XP Agenda Video Last Class Excel Tutorial 5: Working with Excel Lists Agenda for Next Class 1 New Perspectives on Microsoft Office Excel 2003 Tutorial.
Tutorial 8 Designing a Web Site with Frames. XP Objectives Explore the uses of frames in a Web site Create a frameset consisting of rows and columns of.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
Teacher’s Assessment Assistant Worksheet Builder Starting the Program
1 By: Nour Hilal. Microsoft Access is a database software where data is stored in one or more Tables. A Database is a group of related Tables. Access.
Week 11 Creating Framed Layouts Objectives Understand the benefits and drawbacks of frames Understand and use frame syntax Customize frame characteristics.
Chapter 8 HTML Frames. 2 Principles of Web Design Chapter 8 Objectives Understand the benefits and drawbacks of frames Understand and use frames syntax.
Tutorial 8 Designing a Web Site with Frames. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore the uses of frames.
Project 6 Advanced File and Web Searching. 2 CHAPTER OBJECTIVES  Begin a new file or folder search, save a search, and find a file using a saved search.
WHAT IS A DATABASE? A DATABASE IS A COLLECTION OF DATA RELATED TO A PARTICULAR TOPIC OR PURPOSE OR TO PUT IT SIMPLY A GENERAL PURPOSE CONTAINER FOR STORING.
Microsoft Access 2010 Chapter 10 Administering a Database System.
CIS111 PC Literacy Getting Started with Windows XP.
Microsoft Office XP Illustrated Introductory, Enhanced Started with Windows 2000 Getting.
Graphical Enablement In this presentation… –What is graphical enablement? –Introduction to newlook dialogs and tools used to graphical enable System i.
1 Guide to Oracle10G CHAPTER 7: Creating Database Reports 7.
Programming with Microsoft Visual Basic 2008 Fourth Edition Chapter Eight String Manipulation.
Changes to Medical Record and eSig tabs Portal and HPF v
Getting Started with Word & Saving Guided Lesson.
Chapter 3 Automating Your Work. It is frustrating when you have to type the same passage of text repeatedly. For example your name and address. Word includes.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Visual 1: Working with Visual Analysis Agenda Overview of the Preview Panel –Breakdown of its components and how to use Visual Analysis –Text and.
Creating a Java Application and Applet
Introducing Dreamweaver. Dreamweaver The web development application used to create web pages Part of the Adobe creative suite.
Moodle Quizes Staff Guide. Creating Quizzes Click Add an Activity or Resource With the course in editing mode...
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Student Grades Application Introducing Two-Dimensional Arrays and RadioButton.
Microsoft Office 2013 Try It! Chapter 4 Storing Data in Access.
Quick Test Professional 9.2. Testing Process Preparing to Record Recording Enhancing a Test Debugging Running the Test and Analyzing the Results Reporting.
Perfecto Mobile Automation
Using Find, Replace, Go To In Microsoft Word By Krysia Biville.
1 Agenda  Unit 7: Introduction to Programming Using JavaScript T. Jumana Abu Shmais – AOU - Riyadh.
WStore User Guide Customer. Agenda 1.Introduction 2.Searching for offerings 3.Purchasing an offering 4.Downloading resources and invoices 5.Commenting.
CHAPTER 7 LESSON B Creating Database Reports. Lesson B Objectives  Describe the components of a report  Modify report components  Modify the format.
Advanced Visual Analysis. Agenda 2 Visual Relations How Text Analysis works –Do we have a match? –OCR assumptions –My text is not found, what should I.
Visual 1: Working with Visual Analysis
NAMI 360 – Screenshot Guide 2
Search Techniques and Advanced tools for Researchers
T. Jumana Abu Shmais – AOU - Riyadh
Text Analyzer BIS1523 – Lecture 14.
Log In Screen.
EXPERTIndex™ “Contains” EXPERTIndex™ “Starts With”
EXPERTIndex™ “Contains” EXPERTIndex™ “Contains”
Presentation transcript:

Visual Relations, Part 2 Advanced Visual Analysis

Agenda Visual Relations & Index How Text Analysis works –Do we have a match? –OCR assumptions –My text is not found, what should I do?

Part 1 Visual Relations

Index –The system by default selects the first occurrence of a string on the screen. In case the needle has multiple occurrences, enter the index of the required occurrence.

Example of When to Use Visual Relations The Need –We would like to click on the “Free” button of the PayPal application The Problem(s) 1.The “Free” button is not unique on the screen 2.We can’t assume that the PayPal application download will always remain as the fourth one in the listing. The Solution: –Using Visual Relations! First Needle Second Needle

How to Use Visual Relations - Instructions Using the example on the previous page Step 1: Find the First Needle The Find command searches for an image or text and stores it in memory for the second command. In our example, use the Find function to search the screen for the PayPal icon. The system will store the area coordinates of the first object. Step 2: Use Visual Relations in Select, Button.Click, Edit commands 1.Declare a relationship to the first needle by enabling the visual relation direction and inline command parameters. 2.Go to the 'VR' window to simulate the object search by defining the first object to be found (this must be simulated, since the real object will be found during the live run). 3.A unique, dynamic haystack will be displayed. 4.Return to the snapshot window. 5.Click Try to complete a test search.

Understanding the Relationship Between Needles What does this mean? –The First Needle, which is the application image is... Left and Horizontal –to the Second Needle, which is the 'Buy Now' button VR Window Dynamic Haystack Relations Snapshot Window

ByMobileVisualRelation This class is used for visual relations The visualRelation() method gets two By arguments: 1.The first one is for finding the reference element 2.The second one is for finding the target element WebElement element = visualDriver.findElement(ByMobile.visualRelation(By.linkText("call"), By.linkText("message"))); element.click(); /* * This example shows how to use visual relations; left is the default direction and horizontal is the default inline. */ IMobileWebDriver visualDriver = device.getVisualDriver(); MobileVisualRelations visualRelations = visualDriver.manageMobile().visualOptions().genericOptions().visualRelations(); visualRelations.setDirection(MobileVisualRelationDirection.LEFT); visualRelations.setInline(MobileVisualRelationInline.HORIZONTAL); WebElement element = visualDriver.findElement(ByMobile.visualRelation(By.linkText("Chrome"), By.linkText("Click"))); element.click();

Part 2 How Text Analysis Works - OCR

Text Analysis - How It works System finds text on screen and compares it to the needle (required text) OCR is not an exact science so comparison allows for imperfect matches –The number of characters that are “forgiven” is relative to the length of the string NeedleThreshold %Characters Example: Using the table to the left, a text containing 10 characters can have up to 3 characters wrong and still be found. Example: Using the table to the left, a text containing 10 characters can have up to 3 characters wrong and still be found.

Best Practices Always type in the full string you are searching for When a 100% match is required, use the Threshold parameter to override the system's calculation –For example, where there are similar strings on the screen (Row1, Row2)

More Text Analysis info How we analyze text, by default –White Spaces are ignored –Punctuation is ignored –Capitalization is ignored –It is possible to override when needed Whole Words – accept a word within a word –For example, define whether “person” in “personal” is a good match or not –Accepted by default

Finding the text on the screen - OCR Turn on OCR Profiles Try all the profiles with the word accuracy –Per profile, try changing the DPI –Default is 96, try using 300, then 120

Resources Javadoc – Visual Relations – Video & How to Guide – https://community.perfectomobile.com/series/ Code snippets – mobilecloud-webdriver-code-snippets mobilecloud-webdriver-code-snippets GitHub repository –

Thank You