Re: [wtr-general] Re: how can I click an

2018-06-22 Thread Justin Ko
@rajagopalan, I don't know enough about the internal workings of JavaScript or Webdriver to be sure. But my guess would be: - Browsers do not fully support click events for elements - eg https://stackoverflow.com/q/3487263/1200545 - As a result WebDriver has defined special logic

Re: [wtr-general] Re: how can I click an

2018-06-22 Thread rajagopalan madasami
Hi Justin, have you ever try to click option using JavaScript click, it is not choosing as selenium click towards the option would choose the option . But button click remain the same for both, do know why it is ? On 23-Jun-2018 1:06 AM, "Justin Ko" wrote: Do you try using the :id locator? It

[wtr-general] Re: how can I click an

2018-06-22 Thread Justin Ko
Do you try using the :id locator? It looks like you might have crossed your attributes/values - ie the attempts are checking the "fielddisplayname" attribute, but looking for the id value. Try: @browser.a(id: "Employee_ID").click If #click isn't working, you could also try #click!