fortune-sheet icon indicating copy to clipboard operation
fortune-sheet copied to clipboard

DOM Access

Open theConsite opened this issue 1 year ago • 7 comments

Hey everyone,

I'm currently planning to write an end-to-end (E2E) test, but I noticed there are no table elements in the DOM. Is there a way to add specific HTML attributes to the cells?

I appreciate any suggestions or feedback!

Thanks!

theConsite avatar Oct 07 '24 13:10 theConsite

hi, are you looking to add attributes to individual cells?

sanchit3008 avatar Oct 07 '24 16:10 sanchit3008

Hi! Yes, that would be great. I want to test editing data directly in the spreadsheet, so adding attributes to individual cells would be very helpful.

theConsite avatar Oct 07 '24 17:10 theConsite

im sorry for the delay, i have no been able to do anything code related this week regarding this repo for the last 10 days. i will try my best to get back to you asap.

sanchit3008 avatar Oct 10 '24 09:10 sanchit3008

Sure, no problem, please let me know if You come up with something:)

theConsite avatar Oct 15 '24 07:10 theConsite

Hey @sanchit3008, I'm also looking for information on how to add attributes to cell objects in a spreadsheet. Could you provide some guidance on this? Alternatively, would it be possible to add this feature to the library? Thank you!

Marcel-Kaminski avatar Oct 17 '24 15:10 Marcel-Kaminski

@Marcel-Kaminski if youre looking for these attributes to be attached to the html element then i dont think thats possible at this stage (for eg an id for individual cell) because of how the sheet has been built.

sanchit3008 avatar Oct 22 '24 11:10 sanchit3008

okay, How can one access elements in situations where the HTML DOM of a component is not visible, for instance, through XPath? Additionally, how does the library construct the component in such cases?

Marcel-Kaminski avatar Oct 24 '24 08:10 Marcel-Kaminski

maybe this solution will solve your problem click

YeharaDananjaya avatar Oct 28 '24 15:10 YeharaDananjaya