Appium-title

Get Title

Get the current page title (Web context only)
//: # (DO NOT EDIT THIS FILE! This is an auto-generated file. Editing for this document happens in /commands-yml/commands/web/window/title.yml)

Example Usage

// Java
String title = driver.getTitle();

# Python
title = self.driver.title

// Javascript
// webdriver.io example
let handle = driver.getTitle();

// wd example
let title = await driver.title();

# Ruby
# ruby_lib example
title

# ruby_lib_core example
@driver.title

# PHP
// TODO PHP sample

// C#
string title = driver.Title;

Support

Appium Server

Platform Driver Platform Versions Appium Version Driver Version
iOS XCUITest None None None
UIAutomation None None None
Android UiAutomator2 None None None
Espresso None None None
UiAutomator None None None
Mac Mac None None None
Windows Windows None None None

Appium Clients

HTTP API Specifications

Endpoint

GET /session/:session_id/title

URL Parameters

None

JSON Parameters

None

Response

The current page title (string)

See Also

官方链接为:Get Title - Appium