Create get_number_of_views_to_my_status() in waobject.py
NavpreetDevpuri opened this issue · 5 comments
Can you please assign this issue to me if it's still open?
@shivam5522 Good luck. Ask me if u need help.
Hello there! 👋
I'm currently working on this issue, it would be great if you could assign it to me 😊
And I would have a few questions if that's alright for you❓
@fabestah Sure,
Thanks, I appreciate it ❤️
-
I don't quite know how I should select multiple elements (which I have to do, because you can have multiple statuses) and still follow the style in your project (I know how to do it normally), especially for the variables that I have to create in the constant(s) module. With that syntax you use for your constants, I don't think it's possible for me to select multiple elements or is there a way❓ (I'm pretty new to GitHub and working on other peoples projects)
-
Do you know if it's possible or rather said to you know how to build the project in VS Code as PyCharm isn't really my type of IDE but I just can't get it working in VS Code❓ (I plan on doing multiple PRs, that's why I'm asking)
-
Should I add a variable in the constants module which represents the status views in a list or should the list only be returned by the function❓
What I would have done now and have added to the new function so far (of course combined with your instance methods like _wait_for_an_element_to_be_clickable
etc.):
❗click on the status button which I have added to constants.py
❗select all the span elements with the css selector of 'span[data-icon="status-v3-seen"]'
❗use the span elements as an anker point in order to select the following sibling divs by XPATH which hold the view numbers (because they're not selectable otherwise)
❗append the view numbers in a list and return them
I hope my questions aren't too newbie, I already tried to search for information to answer them myself but it hasn't quite worked out ^^
Thanks in advance for your time and for answering my questions 😊