Tithibots / tithiwa

Automate Web WhatsApp with selenium in python.
MIT License
24 stars 22 forks source link

Create get_number_of_views_to_my_status() in waobject.py #66

Open NavpreetDevpuri opened 3 years ago

NavpreetDevpuri commented 3 years ago

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

shivam5522 commented 3 years ago

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

NavpreetDevpuri commented 3 years ago

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

fabestah commented 1 year ago

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 commented 1 year ago

@fabestah Sure,

fabestah commented 1 year ago

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 😊