On Tue, Oct 2, 2012 at 3:46 AM, Joe Fleck joeflec...@gmail.com wrote:
def login_by_uname(uname,pwd)
if uname.nil? and pwd.nil?
uname = per...@yahoo.com
pwd = abcd1234
end
Have you looked at this?
http://watirwebdriver.com/javascript-dialogs/
The latter portion will work with 3.0.0 (3.1.0 and higher will need to use
the former).
Also, if you are planning on using 3.1 or 3.2 in the future look at this
post for an odd caveat that I found with Javascript Dialog
You can do something like this:
select_list = b.select_list(:name = 'xxx')
select_list.option(:value = select_list.value).text
Or a different solution in one line:
b.select_list(:name = 'xxx').selected_options[0].text
Jarmo Pertman
-
IT does really matter - http://itreallymatters.net
On
Or even
result.click if result
But i would drop the #find call also and use just Watir API:
result = @browser.table(:index, 3).link(:text = link_name)
result.click if result.exists?
Jarmo Pertman
-
IT does really matter - http://itreallymatters.net
On Tuesday, October 2, 2012 6:47:30 AM
You could also try to monkey patch RAutomation as described in this issue:
https://github.com/jarmo/RAutomation/issues/28
Maybe it helps, i haven't tried.
Jarmo Pertman
-
IT does really matter - http://itreallymatters.net
On Tuesday, October 2, 2012 3:37:11 PM UTC+3, enroxorz wrote:
Have
word
On Tue, Oct 2, 2012 at 12:53 PM, Jarmo Pertman jarm...@gmail.com wrote:
Or even
result.click if result
But i would drop the #find call also and use just Watir API:
result = @browser.table(:index, 3).link(:text = link_name)
result.click if result.exists?
Jarmo Pertman
-
IT does
It logs in to mail application with uname and pwd hence cannot login
to yahoo mail. - thanks
On Monday, October 1, 2012 8:49:23 PM UTC-7, Joe Fl wrote:
Hi,
If you uncomment 'uname' and 'pwd' make the equal to nothing. You
will need to change both .nil? to .empty? and it might work.
thanks Zeljko. It still logs in to mail application with uname and pwd
hence cannot login to yahoo mail.
On Tuesday, October 2, 2012 1:53:45 AM UTC-7, Željko Filipin wrote:
On Tue, Oct 2, 2012 at 3:46 AM, Joe Fleck joefl...@gmail.comjavascript:
wrote:
def
I will try my best to explain my question.
Is it possible...
I have several sites, they are essentially the same, (same menus, reports
ect..) the GUI is identical, but data may vary. Test sites, essentially,
but each site has a different URL in testing or staging environment.
Because
Of course. You can store information in a yaml file, ini file, or
properties file. Where I work, we use buildr with properties files that
allow us to switch the system under test as easily as using a different
environment variable:
buildr -e test cuke
where test represents a test.properties
Would that work if URL changes a few times a day? We cut what we call a
release from development and the URL contains link to our product site in
the dev enviroment with the change code. So basically its a new URL for
every change we do.
On Tuesday, October 2, 2012 4:02:19 PM UTC-7, Dave
I notice that the source html that the select section is 'greyed out' for
all select tags on the page, I assume this is why I get the element not
visible error:-
http://screencast.com/t/Njmjvyxon
I do not have this issue on the Watir-Webdriver Demo page, it's select tags
are not 'greyed
12 matches
Mail list logo