|
16 | 16 | signin.click() |
17 | 17 | time.sleep(10) |
18 | 18 | email = driver.find_element_by_xpath("//input[@id='username' or @name='email']") |
19 | | -email.send_keys('+919413752866') |
| 19 | +email.send_keys('Email id') |
20 | 20 | print("Email Id entered...") |
21 | 21 | password = driver.find_element_by_xpath("//input[@id='pwd']") |
22 | | -password.send_keys('L0g@n!*x') |
| 22 | +password.send_keys('*****password here*****') |
23 | 23 | print("Password entered...") |
24 | 24 | button = driver.find_element_by_xpath("//input[@id='login-button']") |
25 | 25 | button.click() |
26 | 26 | print('login successfully') |
27 | 27 | time.sleep(7) |
28 | 28 | threadbutton = driver.find_element_by_css_selector(".thread-box > h4:nth-child(1) > a:nth-child(2)") |
29 | 29 | threadbutton.click() |
30 | | -print("clicked") |
31 | | -'''time.sleep(15) |
32 | | -statusbox1 = driver.find_element_by_css_selector("#fid") |
33 | | -statusbox1.click()''' |
| 30 | +print("clicked on new thread button") |
34 | 31 | time.sleep(2) |
35 | 32 | selectforum = Select(driver.find_element_by_name('fid')) |
36 | | -'''all_options = [o.get_attribute(41) for o in select.options] |
37 | 33 |
|
38 | | -for x in all_options: |
39 | | - select.select_by_value(x) |
40 | | - time.sleep(3)''' |
41 | 34 | selectforum.select_by_value('41') |
42 | | -print("done") |
| 35 | +print("Forum selected") |
43 | 36 | time.sleep(8) |
44 | 37 | selecttag = Select(driver.find_element_by_name('typeid')) |
45 | 38 | selecttag.select_by_value('62') |
46 | | -print("Again done") |
| 39 | +print("Catagory selected") |
47 | 40 |
|
48 | 41 | title = driver.find_element_by_css_selector("#subject") |
49 | 42 | title.send_keys('Bot Typing Here....') |
50 | | -time.sleep(5) |
51 | | -#statusbox4 = driver.find_elements_by_class_name('area') |
52 | | -#select2 = Select(driver.find_element_by_id('e_iframe')) |
53 | | -#a = select2.find_element_by_css_selector("#subject") |
54 | | - |
55 | | -#a.send_keys('Thanks for listening from my bot..') |
56 | | -print('only selected') |
| 43 | +print('Title Entered waiting for your contant' ) |
| 44 | +time.sleep(10) |
57 | 45 | submit = driver.find_element_by_css_selector(".btn-orange") |
58 | | - |
59 | | -print('selected') |
| 46 | +print('submitted') |
0 commit comments