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

[FT] ControlTable #248

Open
5 of 9 tasks
netzulo opened this issue Mar 19, 2019 · 1 comment
Open
5 of 9 tasks

[FT] ControlTable #248

netzulo opened this issue Mar 19, 2019 · 1 comment
Labels
Awaiting-Triage Pending of be labeled from a Collaborator Feature New functionality proposal TODO

Comments

@netzulo
Copy link
Owner

netzulo commented Mar 19, 2019

Obtained Behaviour

Follow HTML specification for tables

Expected Behaviour

  • New Class element based on ControlForm to handle <table></table> html Element
  • New testcase for each use case

SPEC

  • new class ControlTable
    • inherit of ControlForm
    • validate tag table tag at instantiation
  • new property rows allow to acces to tr tags as rows as list of ControlBase array
  • new property columns allow to acces to td tags as columns as list of ControlBase array ( use selectors tr > td:nth-child(column_index) )
  • new property cells allow to acces to td tags as cells as list of ControlBase array
  • new method cell allow to access to td tag loaded on a list looking for positions x+y position

Tests

  • new suite for new class ControlTable
  • validate all specs at this suite, instance, methods, properties

Notes

Example at Java : https://github.com/netzulo/qacode.java/blob/f39b87c32dc73b17007a24fe96f02bfad2a0a1c6/src/ntz/drivers/navs/elements/ControlTable.java

@netzulo netzulo added Feature New functionality proposal Testcase labels Mar 19, 2019
@netzulo netzulo self-assigned this Mar 19, 2019
@netzulo netzulo pinned this issue Apr 14, 2019
netzulo added a commit that referenced this issue Apr 14, 2019
+ new class ControlTable
+ inherit of ControlForm
+ validate tag table tag at instantiation
netzulo added a commit that referenced this issue Apr 14, 2019
+ added new property rows allow to acces to tr tags as rows
    at list of ControlBase array + tests
netzulo added a commit that referenced this issue Apr 18, 2019
+ some exception messages moved to logger_messages
+ controls can handle None strict_tags values
+ ctl_dd refactor , added internal check for some methods
+ fix last commit refactor for ctl_form, bad call
+ ctl_tb added html5 structure data tags load
+ added more tests for ctl_tb
netzulo added a commit that referenced this issue Apr 19, 2019
netzulo added a commit that referenced this issue Apr 19, 2019
netzulo added a commit that referenced this issue Apr 19, 2019
* [qacode] starting issue #248 , WIP control_table

+ new class ControlTable
+ inherit of ControlForm
+ validate tag table tag at instantiation

* [qacode] more WIP changes for control_table #248

+ added new property rows allow to acces to tr tags as rows
    at list of ControlBase array + tests

* [qacode] more fixes for issue  #248

+ some exception messages moved to logger_messages
+ controls can handle None strict_tags values
+ ctl_dd refactor , added internal check for some methods
+ fix last commit refactor for ctl_form, bad call
+ ctl_tb added html5 structure data tags load
+ added more tests for ctl_tb

* [qacode] some ControlTable fixes + complexity

+ #248 ControlTable
+ #265 Complexity

* [qacode] renamed test class for ControlTable

* [qacode] some suite vars fixes ControlTable tests

* [qacode] CHANGELOG for PR #264

+ issues: #248 , #265
@netzulo netzulo unpinned this issue Jan 28, 2020
@netzulo
Copy link
Owner Author

netzulo commented Feb 7, 2020

When StaleElement , fails at obtain text from outdated CTL, should to fix this at next PR

 def __get_row__(self, ctl_row, selector):
        """Allow to get cells of a <TR> element
            WARNING: this method just can be used from __load_table__
        """
        row = []
        for cell in ctl_row.find_children(selector):
>           text = cell.get_text()
``

@netzulo netzulo removed their assignment Feb 9, 2020
@netzulo netzulo added Awaiting-Triage Pending of be labeled from a Collaborator TODO and removed Testcase labels Feb 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting-Triage Pending of be labeled from a Collaborator Feature New functionality proposal TODO
Projects
None yet
Development

No branches or pull requests

1 participant