Fix method names in Size example description for PrintOptions class #2121
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
User description
Description
This PR fixes incorrect method names in the Size example description for the
PrintOptions
class in Print Page.Previously, the description incorrectly referred to the methods as
getPaperSize()
andsetPaperSize()
. These have been corrected to their actual method names:getPageSize()
andsetPageSize()
as defined in thePrintOptions
class.No changes were made to the code examples themselves, as they already used the correct method names.
Motivation and Context
The documentation must reflect accurate method names to ensure users can correctly utilize the
PrintOptions
class. The incorrect method names in the description could cause confusion for users referring to the API.Types of Changes
Checklist
PR Type
Documentation
Description
Corrected method names in the "Size" section of the print page documentation.
Updated references from
getPaperSize
/setPaperSize
togetPageSize
/setPageSize
.Ensured consistency across multiple language versions of the documentation.
Improved clarity and accuracy of the API documentation.
Changes walkthrough 📝
print_page.en.md
Corrected method names in English documentation
website_and_docs/content/documentation/webdriver/interactions/print_page.en.md
getPaperSize
/setPaperSize
togetPageSize
/setPageSize
.print_page.ja.md
Corrected method names in Japanese documentation
website_and_docs/content/documentation/webdriver/interactions/print_page.ja.md
getPaperSize
/setPaperSize
togetPageSize
/setPageSize
.print_page.pt-br.md
Corrected method names in Portuguese documentation
website_and_docs/content/documentation/webdriver/interactions/print_page.pt-br.md
getPaperSize
/setPaperSize
togetPageSize
/setPageSize
.print_page.zh-cn.md
Corrected method names in Chinese documentation
website_and_docs/content/documentation/webdriver/interactions/print_page.zh-cn.md
getPaperSize
/setPaperSize
togetPageSize
/setPageSize
.