•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Ruby section within the Web Development category of DaniWeb, a massive community of 428,371 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,506 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Ruby advertiser: SELL YOUR PRODUCT TODAY !
Views: 1364 | Replies: 0
![]() |
•
•
Join Date: Oct 2006
Location: New York City
Posts: 2,553
Reputation:
Rep Power: 7
Solved Threads: 1
I am a member of a QA/testing team for a software company in NYC. We
have decided recently to begin the development of scripting tools to
automate repetitive tasks used during our testing cycles. We have
decided to use Ruby. Although we have admired Ruby from afar for some
time now we have yet to actually make use of it.
So far we are coding simple scripts to create user accounts for testing;
this activity always absorbs incredible amounts of time and interrupts
our testing procedures, hence the need for automation.
What we have created in Ruby the last few days has been very exciting
and it convinces us of the power and beauty of this language.
Working remotely from home today on this project I have been attempting
to access the backend Admin controls for the company/site, that is, I'm
developing a script to automate this process in order for "users" to be
created for our upcoming testing cycle purposes.
This process is straight-foward: logging in via a two-step process to
ensure security. The script is simple and works up unto the point that
I must actually select a link to continue further (after log-in).
The following code is an anonymous version of the actual code I am using
(real links, passwords, etc altered:
----------------
Line 14 of the above code is where I am stuck; I have tried many
variations of activating the link ('OA Management' being the string
available in the code I'm referencing). I have researched the different
methods all day but with no results.
----------------
The following snippet is source code indicating the link(last <li>
line):
---------------
Thank-you in advance for any help or hints.
Regards,
Matty D.
have decided recently to begin the development of scripting tools to
automate repetitive tasks used during our testing cycles. We have
decided to use Ruby. Although we have admired Ruby from afar for some
time now we have yet to actually make use of it.
So far we are coding simple scripts to create user accounts for testing;
this activity always absorbs incredible amounts of time and interrupts
our testing procedures, hence the need for automation.
What we have created in Ruby the last few days has been very exciting
and it convinces us of the power and beauty of this language.
Working remotely from home today on this project I have been attempting
to access the backend Admin controls for the company/site, that is, I'm
developing a script to automate this process in order for "users" to be
created for our upcoming testing cycle purposes.
This process is straight-foward: logging in via a two-step process to
ensure security. The script is simple and works up unto the point that
I must actually select a link to continue further (after log-in).
The following code is an anonymous version of the actual code I am using
(real links, passwords, etc altered:
1 require 'watir'
2 ie = Watir::IE.new
3 ie.maximize
4 ie.goto('https://main2.site.org/dev/code.asp)
#ie warning page bypass
5 ie.link(:text, "Continue to this website (not recommended).").click
#remote login set
6 ie.text_field(:name, "who").set("tom")
7 ie.text_field(:name, "who1").set("smith")
8 ie.text_field(:name, "what1").set("main site")
9 ie.text_field(:name, "when1").set("today")
10 ie.button(:value, "go").click
#primary login set
11 ie.text_field(:name, "nickname").set("bluejay")
12 ie.text_field(:name, "password").set("password1")
13 ie.button(:value, "Login").click
#select link to continue to User account creation
14 ie.link(:text, 'OA Management').clickLine 14 of the above code is where I am stuck; I have tried many
variations of activating the link ('OA Management' being the string
available in the code I'm referencing). I have researched the different
methods all day but with no results.
----------------
The following snippet is source code indicating the link(last <li>
line):
<!-- Registration table --> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td class="menuboxheaderL">Manage Registration</td> <td class="menuboxheaderR"> </td> </tr> <tr> <td class="menuboxline" colspan="2"><img src="images/spacer.gif" alt="" width="1" height="3"></td> </tr> <tr> <td class="menuboxbody" colspan="2"> <ul class="menuboxlist"> <li><a href="dev/setup_premain.asp?qyz=xGfkTgWcUOQVYblhJkG">OA Management</a></li>
---------------
Thank-you in advance for any help or hints.
Regards,
Matty D.
![]() |
•
•
•
•
•
•
•
•
DaniWeb Ruby Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Problem accessing Craigslist from IE Favorites (Viruses, Spyware and other Nasties)
- Need help in accessing tablenames from MSACCESS database (Visual Basic 4 / 5 / 6)
- I buy text links PR 1+... (Ad Space for Sale)
- Problem accessing secure sites (Viruses, Spyware and other Nasties)
- accessing Open network Ports in C# (C#)
- new window in Internet Explorer is always blank (Web Browsers)
- Problems accessing some websites (Viruses, Spyware and other Nasties)
- Problem accessing hotmail due to infection (Viruses, Spyware and other Nasties)
- Cannot Display Server Error when accessing Secure websites (Web Browsers)
- Hijack This Log - IE problems accessing websites (Viruses, Spyware and other Nasties)
Other Threads in the Ruby Forum
- Previous Thread: f.check_box help
- Next Thread: help in watir



Linear Mode