I have a situation where the driver.find_element(:id, “sometext” ).send_keys method is not entering the expected data or else it is being ignored entirely. I am using Ruby with Selenium test::unit.
Example:
In the code below the first two lines find the unit price field, clears it and then enters “100.00” in that field. In the second one the same behavior should enter “150.00” in the Broker Commission field but instead “0.1” gets entered instead and then the third one, which is the Shipping Fee field is completely ignored.
I have tried to do this using :id, :name and also :xpath with similar results. Note that there are several other fields on the same page that enter the correct amounts using the same methods, but for these two I am unable to get it to work. Why would it vary for these two fields only? I don't have a sample page I can direct folks to unfortunately.
@driver.find_element(:id, "frmfldUnitPrice2").clear
@driver.find_element(:id, "frmfldUnitPrice2").send_keys "100.00"
@driver.find_element(:id, "txtBrokerCommission").clear
@driver.find_element(:id, "txtBrokerCommission").send_keys "150"
@driver.find_element(:id, "txtShippingFee").clear
@driver.find_element(:id, "txtShippingFee").send_keys "100"
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/983f6ec6-24fc-449b-9a5a-0f0f72a3edff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.