Skip to Content
実践 Appium
book

実践 Appium

by Manoj Hans, 太田 健一郎, 児島 修
November 2016
Intermediate to advanced
204 pages
2h 41m
Japanese
O'Reilly Japan, Inc.
Content preview from 実践 Appium

7章高度なユーザーインターフェース

前の章までは、Appiumを用いてごくシンプルな操作を行う方法について説明してきました。この章では、長押し、ズーム、スワイプなどのモバイルジェスチャーについて見ていきます。

この章では、以下のトピックについて学びます。

  • 高度なユーザーインタラクションAPI
  • 長押し、ドラッグ&ドロップなどのモバイルジェスチャー
  • アラート処理、スピナー(ドロップダウン)、スイッチボタン、スライドシークバー
  • 画面キャプチャ
  • テスト失敗時の画面キャプチャ

7.1 各種の高度なユーザーインターフェース

Appiumでは、高度なユーザーインタラクションを可能にするAPIを用い、TouchActionMultiTouchActionなどのクラスを使うことにより、ドラッグ・アンド・ドロップ、スワイプ、ズームなどの複雑なモバイルジェスチャーを実行できます。これにより、ユーザーがモバイルデバイス上で行う手動による一連の複雑なイベントと同じものを再現できます。以降のセクションでは、これらのクラスについて詳しく見ていきます。

7.1.1 長押し

長押し(ロングタップ)は、多くの人々によって使用されている携帯ジェスチャーです。長押し(「タッチ・アンド・ホールド」と呼ばれることもあります)は素晴らしい機能です。長押しを使用することで、特定の機能に関する詳細な情報を取得できます。Web上での右クリックと同じく、モバイルアプリ上での複数選択を可能にします。

TouchActionクラスを使用して、長押しの例を作成します。ここでは、Android実機上のダイヤラーパッドを例にとります。数値「0」を長押しすると、「+」に変換されます。以下の手順を実行します。

  1. Eclipseを開き、Appiumプロジェクトを作成します。 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

実践 自然言語処理 ―実世界NLPアプリケーション開発のベストプラクティス

実践 自然言語処理 ―実世界NLPアプリケーション開発のベストプラクティス

Sowmya Vajjala, Bodhisattwa Majumder, Anuj Gupta, Harshit Surana, 中山 光樹
情報アーキテクチャ 第4版 ―見つけやすく理解しやすい情報設計

情報アーキテクチャ 第4版 ―見つけやすく理解しやすい情報設計

Louis Rosenfeld, Peter Morville, Jorge Arango, 篠原 稔和, 岡 真由美
入門 PySpark ―PythonとJupyterで活用するSpark 2エコシステム

入門 PySpark ―PythonとJupyterで活用するSpark 2エコシステム

Tomasz Drabas, Denny Lee, Sky株式会社 玉川 竜司
組織を変える5つの対話 ―対話を通じてアジャイルな組織文化を創る

組織を変える5つの対話 ―対話を通じてアジャイルな組織文化を創る

Douglas Squirrel, Jeffrey Fredrick, 宮澤 明日香, 中西 健人, 和智 右桂

Publisher Resources

ISBN: 9784873117843Other