1. A concise explanation of the problem you’re experiencing.
- I am trying to automate cesium viewer using Selenium. So far I have fetched the entity and fly to that entity. Now, I want to click on that entity so that the assigned event gets fired.
I am pretty new to cesium, help will be highly appreciated.
2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.
string script = @"viewer.render();
var dataSource = viewer.dataSources._dataSources[1];
if (dataSource)
{
for (var i = 0; i < dataSource.entities._entities._array.length; i++)
{
var name = dataSource.entities._entities._array[i].name.toString();
if (name.includes(""" + name + @"""))
{
console.log(i);
viewer.flyTo(dataSource.entities._entities._array[i], {duration: 5});
//viewer.scene.pick(dataSource.entities._entities._array[i].position);
}
}
}";
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
- As listed above, to automate the testing process using Selenium.
4. The Cesium version you’re using, your operating system and browser.