NittResults 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/NittResults/version.rb +1 -1
- data/lib/NittResults.rb +6 -3
- metadata +1 -1
data/lib/NittResults/version.rb
CHANGED
data/lib/NittResults.rb
CHANGED
@@ -16,9 +16,12 @@ module NittResults
|
|
16
16
|
element.send_keys(rollno)
|
17
17
|
# Fixed the selection thing that exists for even semester results
|
18
18
|
button.click
|
19
|
-
|
20
|
-
|
21
|
-
|
19
|
+
valid_roll_no = browser.find_elements(:id,"Dt1").size
|
20
|
+
if valid_roll_no > 0
|
21
|
+
select = browser.find_element(:id,"Dt1")
|
22
|
+
select.find_elements(:tag_name, "option").each do |option|
|
23
|
+
option.click if option.text == "MAY-2012 (REGULAR EXAM)"
|
24
|
+
end
|
22
25
|
end
|
23
26
|
#get the data and store it in the database
|
24
27
|
#i'm storing in a text files for now
|