Button click using WATIR WebDriver

I struggled with this all morning and hoped to get help. I have this button on a web page that pulls out a control panel that allows the user to choose which widgets to display. I am trying to run this using watir webdriver and firefox 9.0, but no luck. I can enter the site, go to the page containing the button, but I just can’t click the "CHOOSE YOUR FUNCTIONS" button.

<div class="personalizationButton">
  <span class="personalizationStatus"></span>
  &nbsp;
  <b class="widgetPanelLink neo-button button-white">
    <span>CHOOSE YOUR FEATURES</span>
  </b>
</div>`

I am concentrating on using the personalization of the div div, but maybe I need to point this to a "b-class"? Just not sure how to format it. Here are some examples of what I have tried

$browser.div(:class, 'personalizationButton').when_present.click 
$browser.button(:text => 'CHOOSE YOUR FEATURES').click 
$browser.button(:div => 'personalizationButton').click 

.. ..... , . , , " " , . ​​, :

unable to locate element, using {:text=>"CHOOSE YOUR FEATURES", :tag_name=>"button"}

, , . , , :

$browser.div(:class => "personalizationButton").click
+5
2

, ( ) HTML. IRB , div, . <b> - "" , .

, , .

$browser.span(:text => "CHOOSE YOUR FEATURES").click
+6

., godaddy.com. " ", brow.div(: class= > 'gdhp-domain-link gdhp-rounded-corners'). span (: text = > ' '). click

0

All Articles