Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow by-name access to page elements #148

Closed
lo5 opened this issue Sep 23, 2020 · 1 comment · Fixed by #1870
Closed

Allow by-name access to page elements #148

lo5 opened this issue Sep 23, 2020 · 1 comment · Fixed by #1870
Assignees
Labels
devx Related to developer experience feature Feature request py Related to Python Driver server Related to server

Comments

@lo5
Copy link
Member

lo5 commented Sep 23, 2020

API ergonomics improvement:

Currently supported: card.items[0].caption = 'foo'
Desirable: card.items.upload_progress.caption = 'foo' or card.items['upload_progress'].caption = 'foo'

Requires modification to server-side interpreter.

@lo5 lo5 added server Related to server feature Feature request py Related to Python Driver devx Related to developer experience labels Sep 23, 2020
@lo5 lo5 self-assigned this Sep 23, 2020
@lo5
Copy link
Member Author

lo5 commented Oct 24, 2020

Shorter:

page['card_name', 'upload_progress'].caption = 'foo' # Scans card_name for upload_progress
page[, 'upload_progress'].caption = 'foo' # Scans all cards on page for upload_progress
page[, 'stats_table', 'search_bar'].caption = 'foo' # Scans all cards on page for search_bar inside stat_table

@lo5 lo5 changed the title Allow by-name access to array elements Allow by-name access to page elements Oct 24, 2020
@lo5 lo5 mentioned this issue Mar 27, 2021
30 tasks
@mturoci mturoci assigned mturoci and unassigned lo5 Mar 3, 2023
mturoci added a commit that referenced this issue Mar 8, 2023
mturoci added a commit that referenced this issue Mar 9, 2023
mturoci added a commit that referenced this issue Mar 10, 2023
mturoci added a commit that referenced this issue Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devx Related to developer experience feature Feature request py Related to Python Driver server Related to server
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants