browser.select_list(:id, "ProductGroup").select!("Fire Products")
It's not choosing any option as well as it's not throwing any error.
I know this has been done through Java script and don't know why it's not working.
--
--
Before posting, please read http://watir.com/support. In short: search before you ask, be nice.
watir-...@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "Watir General" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/watir-general/lUkyU5-C0Eg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to watir-general+unsubscribe@googlegroups.com.
No I am not. Actually it's choosing but it's not reflecting, clicking the option through selenium refreshes the page and once option is selected field gets disabled but nothing is happening while I choose through JavaScript.
On 04-Sep-2017 11:30 PM, "Titus Fortner" <titusf...@gmail.com> wrote:
Out of curiosity, are you testing it on a site using React?
On Mon, Sep 4, 2017 at 12:18 AM, <rajagopal...@gmail.com> wrote:
To be close it 's choosing but not reflecting in the select list. But selenium select does the Job properly. I believe after the choose, selenium is triggering something which Javascript fails to trigger that.
On Monday, September 4, 2017 at 12:23:48 PM UTC+5:30, rajagopal...@gmail.com wrote:I have written the below codebrowser.select_list(:id, "ProductGroup").select!("Fire Products")It's not choosing any option as well as it's not throwing any error.I know this has been done through Java script and don't know why it's not working.
--
--
Before posting, please read http://watir.com/support. In short: search before you ask, be nice.
watir-...@googlegroups.com
http://groups.google.com/group/watir-general
---
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.
--
--
Before posting, please read http://watir.com/support. In short: search before you ask, be nice.
watir-...@googlegroups.com
http://groups.google.com/group/watir-general
---
You received this message because you are subscribed to a topic in the Google Groups "Watir General" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/watir-general/lUkyU5-C0Eg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to watir-genera...@googlegroups.com.
set!select!arguments[0].options[1].selected=true click! wait()b.wait(30) b.click!
b.wait(30)
def click!
document.getElementId('something').click
b.wait(30)
end