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

added create_group() function #84

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

added create_group() function #84

wants to merge 1 commit into from

Conversation

saisumanthkumar
Copy link

Fixes #67

@ghost
Copy link

ghost commented Oct 24, 2021

Changes to your CodeSee Architecture Map:

View a CodeSee Map of these changes

View this PR diagram as an interactive map

View more CodeSee Maps

Legend

CodeSee Map Legend

time.sleep(1)
driver.find_element_by_css_selector('div[aria-label="New group"]').click()
time.sleep(1)
contact = input("Enter name of contact or number to add to create group : ")
Copy link
Owner

Choose a reason for hiding this comment

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

Use contact.txt list and pick contacts from there or pass a contact list to this create_group function.

contactname = contacts[i].find_element_by_xpath(f'/html/body/div[1]/div[1]/div[1]/div[2]/div[1]/span/div[1]/span/div[1]/div/div[2]/div[1]/div/div/div[{str(i+1)}]/div/div/div[2]/div[1]/div/span/span').text
print(f' - {i+1}.{contactname}')
while True:
contact_choice = str(input('\nEnter a choice : '))
Copy link
Owner

Choose a reason for hiding this comment

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

What are the choices?

Copy link
Author

Choose a reason for hiding this comment

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

@shauryauppal once you pass the name in ,the filter shows some names we can choose some names these are our choices

print('\nEnter valid option\n')
driver.find_element_by_css_selector('span[data-testid="arrow-forward"]').click()
time.sleep(1)
group_name = input('Enter name of the group : ')
Copy link
Owner

Choose a reason for hiding this comment

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

Pass the name of group to function take input in main

Copy link
Owner

Choose a reason for hiding this comment

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

Take all inputs in main and keep function simple

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.

Automatize create group whatsapp
2 participants