Re: [wtr-general] Watir WebDriver Vs Selenium

2013-09-09 Thread Oscar Rieken
the only difference is that watir has wrappers to help you locate elements


On Sun, Sep 8, 2013 at 5:57 AM, Avihay Eyal avihay.e...@gmail.com wrote:

 Hi, I'm trying to evaluate the two frameworks, and I couldn't find a
 recent and comprehensive comparison of the two...

 So, is there any reason to choose one over the other?


 Thanks.

 --
 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 watir-general@googlegroups.com
 http://groups.google.com/group/watir-general
 watir-general+unsubscr...@googlegroups.com

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [wtr-general] Access to link contained in div object

2013-09-09 Thread Oscar Rieken
why not just use the link text? or ask your developers to add id's


On Mon, Sep 9, 2013 at 2:47 PM, victor.ca...@gmail.com wrote:

 In the code below I want to acess and click on the element a class
 =see-all style= href =/netowrking/resources see all /a  which is
 containedin a div object. The div tag has no attributes. I basically cannot
 acurately locate the see all link.

 Please, any suggestion on how can this be done? Thanks

 li class =last
 div
 h3Resource/h3
 div class = pages sui-opt-in
 div class =component-header
 ul class =components
 div class =list-fotter-controls
 a class =seel=-all style = heref =/networking/resourcessee
 all/a
  /div
 /li


 Thanks

 --
 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 watir-general@googlegroups.com
 http://groups.google.com/group/watir-general
 watir-general+unsubscr...@googlegroups.com

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[wtr-general] Watir WebDriver Vs Selenium

2013-09-09 Thread Avihay Eyal
Hi, I'm trying to evaluate the two frameworks, and I couldn't find a recent 
and comprehensive comparison of the two...

So, is there any reason to choose one over the other?


Thanks.

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[wtr-general] Access to link contained in div object

2013-09-09 Thread victor . cairo


In the code below I want to acess and click on the element a class 
=see-all style= href =/netowrking/resources see all /a  which is 
containedin a div object. The div tag has no attributes. I basically cannot 
acurately locate the see all link. 

Please, any suggestion on how can this be done? Thanks 

li class =last 
div
h3Resource/h3
div class = pages sui-opt-in
div class =component-header
ul class =components
div class =list-fotter-controls
a class =seel=-all style = heref =/networking/resourcessee 
all/a
 /div
/li


Thanks 

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [wtr-general] Dropdown using onchange=javascript:setTimeout(

2013-09-09 Thread Željko Filipin
Please provide HTML that would reproduce the problem or link to the page
where the problem is reproducible. Also, please provide the Ruby code that
produces the error.

Željko
--
https://leanpub.com/watirbook


On Mon, Sep 9, 2013 at 12:16 AM, topgun fifteen gotblinds...@gmail.comwrote:

 Hi Everyone,

 I'm new to watir, and currently having a problem when ajax is present.
 My Scenario is, I should Select the First Industry before the Second
 Industry Shows up.

 Problem is that, it gives me the wrong value.  *Miscellaneous Heavy
 Construction *should be on the last Industry and not in the 2nd
 Industry. Thats why I'm getting this error below right after the Industry 1
 was selected.
 *Here is my error message:
  Watir::Exception::NoValueFoundException: No option with :text,
 :label or :value of Miscellaneous Heavy Construction in this select
 element*
 I'm worried that the onchange=javascript:setTimeout( might be the reason
 why I'm having this.

 What Is the best approach for this? Should I use the wait_until? or there
 is another way doing this right?
 Im using WATIR and data-driven using excel.







  --
 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 watir-general@googlegroups.com
 http://groups.google.com/group/watir-general
 watir-general+unsubscr...@googlegroups.com

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [wtr-general] Dropdown using onchange=javascript:setTimeout(

2013-09-09 Thread topgun fifteen
Hi Zeljko,

Here is my *html*
div
div class=reg_client_label style=margin-left: 30px; … /div
div class=reg_client_ctrl
select 
id=CPContent_TabContainer1_tab_company_information_ddlIndustry1 
class=il_ddl style=width:350px; 

onchange=javascript:setTimeout('__doPostBack(\'ctl00$CPContent$TabContainer1$tab_company_information$ddlIndustry1\',\'\')',
 
0) 

name=ctl00$CPContent$TabContainer1$tab_company_information$ddlIndustry1
option value=0 … /option
option value=1 … /option
option value=11 selected=selectedConstruction/option
/select
/div
div style=clear: both; … /div
/div

div
div class=reg_client_label style=margin-left: 30px; … /div
div class=reg_client_ctrl
select 
id=CPContent_TabContainer1_tab_company_information_ddlIndustry2 
class=il_ddl style=width:350px; 

onchange=javascript:setTimeout('__doPostBack(\'ctl00$CPContent$TabContainer1$tab_company_information$ddlIndustry2\',\'\')',
 
0) 

name=ctl00$CPContent$TabContainer1$tab_company_information$ddlIndustry2
option value=0 … /option
option value=12 … /option
option value=16 selected=selectedHeavy 
Construction/option
/select
/div
div style=clear: both; … /div
/div

div
div class=reg_client_label style=margin-left: 30px; … /div
div class=reg_client_ctrl
select 
id=CPContent_TabContainer1_tab_company_information_ddlIndustry3 
class=il_ddl style=width:350px; 

onchange=javascript:setTimeout('__doPostBack(\'ctl00$CPContent$TabContainer1$tab_company_information$ddlIndustry3\',\'\')',
 
0) 

name=ctl00$CPContent$TabContainer1$tab_company_information$ddlIndustry3
option value=0 … /option
option value=17 selected=selected … /option
option value=18 … /option
/select
/div
div style=clear: both; … /div
/div

Here is my Ruby Error
Error: test_valid_client(ClientRecord_Create)
  Watir::Exception::NoValueFoundException: No option with :text, :label or 
:value of Miscellaneous Heavy Construction in this select element



On Tuesday, September 10, 2013 6:24:07 AM UTC+8, Željko Filipin wrote:

 Please provide HTML that would reproduce the problem or link to the page 
 where the problem is reproducible. Also, please provide the Ruby code that 
 produces the error.

 Željko
 --
 https://leanpub.com/watirbook


 On Mon, Sep 9, 2013 at 12:16 AM, topgun fifteen 
 gotbli...@gmail.comjavascript:
  wrote:

 Hi Everyone,

 I'm new to watir, and currently having a problem when ajax is present.
 My Scenario is, I should Select the First Industry before the Second 
 Industry Shows up.

 Problem is that, it gives me the wrong value.  *Miscellaneous Heavy 
 Construction *should be on the last Industry and not in the 2nd 
 Industry. Thats why I'm getting this error below right after the Industry 1 
 was selected.
 *Here is my error message:  
  Watir::Exception::NoValueFoundException: No option with :text, 
 :label or :value of Miscellaneous Heavy Construction in this select 
 element*
 I'm worried that the onchange=javascript:setTimeout( might be the reason 
 why I'm having this.

 What Is the best approach for this? Should I use the wait_until? or there 
 is another way doing this right?
 Im using WATIR and data-driven using excel.







  -- 
 -- 
 Before posting, please read http://watir.com/support. In short: search 
 before you ask, be nice.
  
 watir-...@googlegroups.com javascript:
 http://groups.google.com/group/watir-general
 watir-genera...@googlegroups.com javascript:
  
 --- 
 You received this message because you are subscribed to the Google Groups 
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to watir-genera...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [wtr-general] Dropdown using onchange=javascript:setTimeout(

2013-09-09 Thread Željko Filipin
On Mon, Sep 9, 2013 at 4:25 PM, topgun fifteen gotblinds...@gmail.comwrote:

 Here is my Ruby Error
 Error: test_valid_client(ClientRecord_Create)


You still did not post the Ruby code that causes the error. Also, can you
reproduce the error just with the HTML you have posted?

Željko

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [wtr-general] Dropdown using onchange=javascript:setTimeout(

2013-09-09 Thread topgun fifteen
Here is the ruby code.

class ClientRecord_Create  Test::Unit::TestCase
def test_valid_client


industry1_dropdown.select(readExcel.getValue(Complete_Record,industry1))

   industry2_dropdown.select(readExcel.getValue(Complete_Record,industry2))


industry3_dropdown.select(readExcel.getValue(Complete_Record,industry3))
end
end


module ClientRecord
  def industry1_dropdown
return $browser.select_list(:id, 
CPContent_TabContainer1_tab_company_information_ddlIndustry1)
  end
  
  def industry2_dropdown
return $browser.select_list(:id, 
CPContent_TabContainer1_tab_company_information_ddlIndustry2)
  end
  
  def industry3_dropdown
return $browser.select_list(:id, 
CPContent_TabContainer1_tab_company_information_ddlIndustry3)
  end

end


On Tuesday, September 10, 2013 7:40:17 AM UTC+8, Željko Filipin wrote:

 On Mon, Sep 9, 2013 at 4:25 PM, topgun fifteen 
 gotbli...@gmail.comjavascript:
  wrote:

 Here is my Ruby Error
 Error: test_valid_client(ClientRecord_Create)


 You still did not post the Ruby code that causes the error. Also, can you 
 reproduce the error just with the HTML you have posted?

 Željko


-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.