-
Notifications
You must be signed in to change notification settings - Fork 160
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
base: master
Are you sure you want to change the base?
Conversation
Changes to your CodeSee Architecture Map:View this PR diagram as an interactive map View more CodeSee Maps 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 : ") |
There was a problem hiding this comment.
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 : ')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are the choices?
There was a problem hiding this comment.
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 : ') |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
Fixes #67