Javascript usage with Ranorex
Posted: Mon Aug 12, 2019 8:45 am
Not a coder so hopefully someone can understand what I am trying to explain...
Have a web page and there is a table with buttons.
I need to validate if the button is valid or not.
If I check with Spy, I get that both buttons are Enabled, Valid and Visible. (and button 1 is not)
If I use Chrome F12 and use console, I can get that button one is disabled:
document.querySelector("#DataTables_Table_5 > tbody > tr:nth-child(1) > td:nth-child(5) > a")
a.btn.btn-primary.btn-xs.disabled
How can I do this query with Ranorex user code what I can do in Chrome console?
Have a web page and there is a table with buttons.
I need to validate if the button is valid or not.
If I check with Spy, I get that both buttons are Enabled, Valid and Visible. (and button 1 is not)
If I use Chrome F12 and use console, I can get that button one is disabled:
document.querySelector("#DataTables_Table_5 > tbody > tr:nth-child(1) > td:nth-child(5) > a")
a.btn.btn-primary.btn-xs.disabled
How can I do this query with Ranorex user code what I can do in Chrome console?