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

Create get_number_of_views_to_my_status() in waobject.py #66

Open
NavpreetDevpuri opened this issue Oct 24, 2020 · 5 comments
Open

Create get_number_of_views_to_my_status() in waobject.py #66

NavpreetDevpuri opened this issue Oct 24, 2020 · 5 comments

Comments

@NavpreetDevpuri
Copy link
Member

Forgiven example it should return [75, 74, 72, 25]
chrome_ffpztupAX2

@shivam5522
Copy link
Contributor

Can you please assign this issue to me if it's still open?

@NavpreetDevpuri
Copy link
Member Author

@shivam5522 Good luck. Ask me if u need help.

@fabestah
Copy link

fabestah commented Oct 18, 2022

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❓

@NavpreetDevpuri
Copy link
Member Author

@fabestah Sure,

@fabestah
Copy link

fabestah commented Oct 19, 2022

Thanks, I appreciate it ❤️

  1. 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)

  2. 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)

  3. 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 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

3 participants