-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from DSC-UIT-khi/version3
Version3
- Loading branch information
Showing
32 changed files
with
16,372 additions
and
178 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[0m2021.04.06 23:03:37 INFO Started: Metals version 0.10.0 in workspace 'C:\Users\Raheel\Desktop\Google-DSC-Platform-Extension' for client vscode 1.55.0.[0m | ||
[0m2021.04.06 23:03:41 INFO time: initialize in 3.3s[0m | ||
[0m2021.04.06 23:03:43 WARN Build server is not auto-connectable.[0m | ||
[0m2021.04.06 23:03:43 WARN no build tool detected in workspace 'C:\Users\Raheel\Desktop\Google-DSC-Platform-Extension'. The most common cause for this problem is that the editor was opened in the wrong working directory, for example if you use sbt then the workspace directory should contain build.sbt. [0m | ||
[0m2021.04.07 01:04:10 INFO shutting down Metals[0m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"python.pythonPath": "/usr/bin/python3", | ||
"files.watcherExclude": { | ||
"**/target": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
# DSC-Platform-Extension | ||
Find **Youtube** Tutorial at | ||
# Google DSC Platform Extension - Version 3.0 | ||
This Extension allows DSC Lead to add attendees from a .CSV file through automated process in any hosted session on DSC Platform. | ||
## changes | ||
### 1) Now you can add attendees by giving event link as an input It will add attendees to that particular event. | ||
|
||
|
||
Find User Guide Below OR Find **Youtube** Tutorial at | ||
https://www.youtube.com/watch?v=HOi1MoDM1Uk&feature=youtu.be | ||
|
||
### Installation | ||
1) **Install Python** from https://www.python.org/downloads/ | ||
2) **Install Dependencies** | ||
|
@@ -12,10 +18,15 @@ pip install -r requirements.txt | |
### You are ready to go! | ||
The extension is developed by [Raheel Siddiqui](https://github.com/rawheel) with :heart: | ||
|
||
## Screenshots | ||
![](screenshots/login.jpg) | ||
## USER GUID (STEPS TO FOLLOW) | ||
### 1) Save your data by giving particular information. | ||
![](screenshots/login.jpg) | ||
### 2) select .CSV which has attendees data, goto (help -> warnings) to check detailed constraints. | ||
![](screenshots/main_window.jpg) | ||
### 3) Paste the event link from event dashboard for example: | ||
![](screenshots/event_link.jpg) | ||
### 4) Click on Start button & see the magic. 😃 | ||
|
||
### Limitations | ||
1) It is assumed that an account having extension other than gmail is being used. (e.g [email protected]) | ||
2) Only a person with Lead role is able to add the CSV file to event. | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
from script import * | ||
|
||
|
||
|
||
|
||
def CheckIn(email,pas,event_link): | ||
obj = dsc_bot() | ||
obj.login(event_link,email,pas) | ||
obj.bot.get(event_link) | ||
time.sleep(5) | ||
obj.bot.get(event_link) | ||
time.sleep(15) | ||
sort_check = obj.bot.find_element_by_xpath('/html/body/div[1]/div/div/div/div[3]/div/div/div/div/div/div[2]/div/div/div[4]/div/table/thead/tr/th[3]') | ||
sort_check.click() | ||
count = 2 | ||
after_count = 7 | ||
for k in range(1900): | ||
|
||
|
||
|
||
|
||
try: | ||
checkin_btn = obj.bot.find_element_by_xpath(f'/html/body/div[1]/div/div/div/div[3]/div/div/div/div/div/div[2]/div/div/div[4]/div/table/tbody/tr[2]/td[3]/label/span') | ||
checkin_btn.click() | ||
#checkin_btnplus = obj.bot.find_element_by_class_name('contentScrollContainer') | ||
#checkin_btnplus.send_keys(Keys.DOWN) | ||
time.sleep(1) | ||
|
||
sort_check = obj.bot.find_element_by_xpath('/html/body/div[1]/div/div/div/div[3]/div/div/div/div/div/div[2]/div/div/div[4]/div/table/thead/tr/th[3]') | ||
|
||
sort_check.click() | ||
time.sleep(1) | ||
sort_check.click() | ||
except: | ||
pass | ||
|
||
|
||
|
||
|
||
|
||
#count+=1 | ||
time.sleep(2) | ||
|
||
time.sleep(10) | ||
|
||
|
||
|
||
|
||
info = (open("secret_info.txt","r").read()).split(' ') | ||
email =info[0] | ||
pas = info[2] | ||
event_link = 'https://dsc.community.dev/accounts/dashboard/#/chapter-194/event-7214/manage' | ||
CheckIn(email,pas,event_link) | ||
|
||
#obj.login(email,pas) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
from script import * | ||
|
||
|
||
|
||
|
||
def CheckIn(email,pas,event_link): | ||
obj = dsc_bot() | ||
|
||
obj.login(event_link,email,pas) | ||
obj.bot.get(event_link) | ||
time.sleep(5) | ||
obj.bot.get(event_link) | ||
time.sleep(15) | ||
sort_check = obj.bot.find_element_by_xpath('/html/body/div[1]/div/div/div/div[3]/div/div/div/div/div/div[2]/div/div/div[4]/div/table/thead/tr/th[3]') | ||
sort_check.click() | ||
|
||
|
||
checkin_btnplus = obj.bot.find_element_by_class_name('contentScrollContainer') | ||
|
||
count = 2 | ||
while True: | ||
|
||
for x in range(10): | ||
try: | ||
checkin_btn = obj.bot.find_element_by_xpath(f'/html/body/div[1]/div/div/div/div[3]/div/div/div/div/div/div[2]/div/div/div[4]/div/table/tbody/tr[{count}]/td[3]/label/span') | ||
checkin_btn.click() | ||
except: | ||
checkin_btnplus.send_keys(Keys.DOWN) | ||
checkin_btn = obj.bot.find_element_by_xpath(f'/html/body/div[1]/div/div/div/div[3]/div/div/div/div/div/div[2]/div/div/div[4]/div/table/tbody/tr[{count}]/td[3]/label/span') | ||
checkin_btn.click() | ||
|
||
time.sleep(0.2) | ||
count+=1 | ||
checkin_btnplus = obj.bot.find_element_by_class_name('contentScrollContainer') | ||
for x in range(14): | ||
checkin_btnplus.send_keys(Keys.DOWN) | ||
|
||
|
||
|
||
count=3 | ||
time.sleep(2) | ||
|
||
time.sleep(10) | ||
|
||
|
||
|
||
|
||
info= (open("secret_info.txt","r").read()).split(' ') | ||
email =info[0] | ||
pas = info[2] | ||
event_link = 'https://dsc.community.dev/accounts/dashboard/#/chapter-194/event-6611/manage' | ||
CheckIn(email,pas,event_link) | ||
|
||
#obj.login(email,pas) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[0118/153257.486:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3) | ||
[0118/154005.213:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3) | ||
[0118/154130.142:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3) | ||
[0118/160302.347:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3) | ||
[0118/161049.913:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3) | ||
[0118/161934.062:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3) | ||
[0118/162108.466:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3) | ||
[0118/171949.698:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3) | ||
[0118/222437.782:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3) | ||
[0124/042443.116:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3) | ||
[0124/043639.461:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3) | ||
[0124/045612.341:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3) | ||
[0124/055825.075:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.