Can selenium be used to check if jQuery () element is set on an element?
In my application, the user enters information about several orders. Each order is added to the overview table so that they can see their progress along the way. In addition to the information about the visible order, we save some additional information that we need for each order, using the array stored in jquery.data (), for example:
$('#table').data('orders').push(neworderdata)
I would like to write a selenium test to assert that when a user clicks โAdd orderโ, my additional data is added to $ ('# table'). data ('orders').
I think I need something like:
Command: assertEval Target: $('#table').data('order')[1].cust_no Value: 99999
But I think the problem I am facing is that the Selenium IDE does not know about jQuery namespace and functions, so it does not know how to find the table. But even if I used getElementbyID ("table"), how do I know what selenium knows about data ()?
source share