Skip to content

feat: add placeholderValue to page source tree#1016

Merged
mykola-mokhnach merged 5 commits intoappium:masterfrom
ikharebashviliGD:feat/add_placeholderValue_to_page_source
May 20, 2025
Merged

feat: add placeholderValue to page source tree#1016
mykola-mokhnach merged 5 commits intoappium:masterfrom
ikharebashviliGD:feat/add_placeholderValue_to_page_source

Conversation

@ikharebashviliGD
Copy link
Copy Markdown

Summary
This PR adds support for the placeholderValue attribute to be included in the response from the /source (getPageSource) endpoint.

Motivation
Previously, placeholderValue was only available when requesting attributes for a specific element. However, this attribute is also valuable when analyzing the full accessibility tree returned by /source, particularly for identifying input fields and verifying placeholder text during automated accessibility testing.

By including placeholderValue in the full snapshot, we enable better support for end-to-end validations and tools that rely on the complete accessibility hierarchy.

@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla Bot commented May 15, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

Comment thread WebDriverAgentLib/Categories/XCUIApplication+FBHelpers.m Outdated
Comment thread WebDriverAgentLib/Categories/XCUIApplication+FBHelpers.m Outdated
Comment thread WebDriverAgentLib/Categories/XCUIApplication+FBHelpers.m Outdated
Comment thread WebDriverAgentLib/Categories/XCUIApplication+FBHelpers.m Outdated
Comment thread WebDriverAgentLib/Categories/XCUIApplication+FBHelpers.m Outdated
Moved the logic for constructing attribute blocks into a separate method
for clarity and future extensibility. Also replaced direct type checks
with a reusable fb_supportsPlaceholder helper on FBXCElementSnapshotWrapper.
… comment

- Replaced custom placeholder support check with FBDoesElementSupportInnerText, as introduced in upstream PR
- Updated comment for fb_attributeBlockMapForSnapshot to clarify usage context and avoid confusion about method placement
Comment thread WebDriverAgentLib/Utilities/FBElementHelpers.m
@ikharebashviliGD ikharebashviliGD force-pushed the feat/add_placeholderValue_to_page_source branch from 3281454 to 7e9dbb4 Compare May 19, 2025 13:36
Comment thread WebDriverAgentLib/Categories/XCUIApplication+FBHelpers.m Outdated
@mykola-mokhnach mykola-mokhnach merged commit 509c207 into appium:master May 20, 2025
38 of 42 checks passed
github-actions Bot pushed a commit that referenced this pull request May 20, 2025
## [9.7.0](v9.6.3...v9.7.0) (2025-05-20)

### Features

* add placeholderValue to page source tree ([#1016](#1016)) ([509c207](509c207))
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 9.7.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@KazuCocoa KazuCocoa added the size:S contribution size: S label Jun 2, 2025
@KazuCocoa
Copy link
Copy Markdown
Member

Hi @ikharebashviliGD, congrats: the Appium project wants to compensate you for this contribution! Please reply to this comment mentioning @jlipps and @KazuCocoa and sharing your OpenCollective account name, so that we can initiate payment! Or let us know if you decline to receive compensation via OpenCollective. Thank you!

@ikharebashviliGD
Copy link
Copy Markdown
Author

Hi @ikharebashviliGD, congrats: the Appium project wants to compensate you for this contribution! Please reply to this comment mentioning @jlipps and @KazuCocoa and sharing your OpenCollective account name, so that we can initiate payment! Or let us know if you decline to receive compensation via OpenCollective. Thank you!

@jlipps @KazuCocoa Thank you very much! It's a pleasure.
Here is my OpenCollective account: https://opencollective.com/illia-kharebashvili

manabuaota added a commit to manabuaota/airtest-netease that referenced this pull request Feb 14, 2026
## [9.7.0](appium/WebDriverAgent@v9.6.3...v9.7.0) (2025-05-20)

### Features

* add placeholderValue to page source tree ([#1016](appium/WebDriverAgent#1016)) ([509c207](appium/WebDriverAgent@509c207))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released size:S contribution size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants