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

add optional parameter source to Get Table Cell Value Keyword #71

Merged
merged 1 commit into from
Jul 29, 2015
Merged

add optional parameter source to Get Table Cell Value Keyword #71

merged 1 commit into from
Jul 29, 2015

Conversation

WojtekKowaluk
Copy link
Contributor

When source is set to "model", text extractor won't try to get text from cell's component firsts and will get it directly from table model. When source is set to "auto" (default) old strategy is used, i.e. extractor will first try to extract text from cell's component and then if this fails it will get it from table model.

@jussimalinen
Copy link
Contributor

Thanks for the pull request. I finally have again time to look at other projects besides the core framework. Could you try to make a test for this? We try to include tests for all new features.

@WojtekKowaluk
Copy link
Contributor Author

Sure. Actually I wanted to discuss this solution with you first in context of the problem we are trying to solve. I will try to reach you on IRC channel.


private String getTextFromCellComponent(int row, int col) {
Component cellRendererComponent = getCellRendererComponent(row, col);
System.out.println(cellRendererComponent.getClass().getName());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont mind adding debug logging, but some context should be provided "Getting text from element of type xxxx" and logged perhaps at debug level?

@WojtekKowaluk
Copy link
Contributor Author

I have added tests and documentation.

When source is set to "model", text extractor won't try to get text from cell's component firsts and will get it directly from table model. When source is set to "auto" (default) old strategy is used, i.e. extractor will first try to extract text from cell's component and then if this fails it will get it from table model.
WojtekKowaluk added a commit that referenced this pull request Jul 29, 2015
add optional parameter `source` to Get Table Cell Value Keyword
@WojtekKowaluk WojtekKowaluk merged commit 0e7d2cb into MarketSquare:master Jul 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants