Hi All,
If you have free time, please try the case given below:
a) Go to
https://secure.mlb.com/enterworkflow.do?flowId=registration.ajax.wizardc_id=mlb
b) select I don't have MLB account
c) Enter email-address and click Register button
d) It shows you error pop-up, i want the text of that
Guys,
I tried all these for below given requirements but no value:
ie = Watir::IE.new
test_site='https://secure.qa2.mlb.com/enterworkflow.do?
flowId=registration.ajax.wizardc_id=mlb'
ie.goto(test_site)
ie.radio(:id, 'select_register').set
ie.text_field(:id,
Hey Felipe ,
First of all big thnx for replying, i will try this code ASAP and then let u
know if stuck again.
Regarding Oracle/Ruby connectivity, i faced too many issues but at last had
no option so uninstall and reinstall oracle client. From then onwards, it is
working fine. Fingers cross :)
Felipe:
I tried this and got this error:
C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/dependenci
es.rb:440:in `load_missing_constant': uninitialized constant Win32::Registry
(Na
meError)
from
C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_suppo
Hi Dheeraj,
To handle popups there is a better way without using autoit.
Add the below code in to C:\ruby\lib\ruby\gems\1.8\gems\watir-1.6.2\lib
\watir\ie-class.rb below visible method -
def visible=(boolean)
@ie.visible = boolean if boolean != @ie.visible
end
To execute
My bad Chuck, sorry for posting two problem at one go.
Ruby/Oracle connectivity thing is working fine for me now.
The only limitation pending is:
On Login page, when we submit the form without entering
confirm password value, it gives pop-up message i.e Confirm
Password- Entry Required., same
Hello Dheeraj,
I defined the function in the end of this message to click on button
txtButton when the alert has text equal to txtWindow
You call it with:
@main.button(:name, CONFIRM).click_no_wait
clica_window_BUTTON Are you sure do you want to confirm?, OK
@ie.waitForIE
The code
Firstly, please do not ask two questions that are not related in a
single thread. This is no different than asking a new unrelated
question in an existing thread. it makes things much too confusing
for everyone, and harder for anyone coming here and searching for
answers to find what they need.