rautomation

Masked Text Box issue

走远了吗. 提交于 2020-01-05 07:50:33
问题 i m using the rad masked control for phone field. telerik:RadMaskedTextBox ID="txtPhone1" runat="server" EnableAjaxSkinRendering="False" Mask="(###) ###-####" Skin="Hay" ZeroPadNumericRanges="False" MaxLength="20" TabIndex="30" Width="200px"></telerik:RadMaskedTextBox when i m trying to add phone using watir, using this code browser.text_field(:id => 'ctl00_ContentPlaceHolder1_Registration2_txtPhone1_text').set '7893457889' only last value has been added. kindly help me out. how to fill

Unable to find buttons of system popup using rautomation

蹲街弑〆低调 提交于 2019-12-24 00:05:14
问题 I'm writing tests using Selenium WebDriver and rautomation to handle system popup. I tried it on irb like following: require 'selenium-webdriver' require 'rautomation' driver = Selenium::WebDriver.for :firefox driver.get "http://rubygems.org/gems/rautomation-0.9.2.gem" window = RAutomation::Window.new :title => "Opening rautomation-0.9.2.gem" ok_button = window.button(:text => "&OK") ok_button.exists? cancel_button = window.button(:text => "&Cancel") cancel_button.exists? ok_button.exists?