Unfortunately, there is no way to capture an existing viz and assign it to a variable like one can do the same thing in the DOM: foo =
You're pretty much going to have to instantiate in order get a handle. Very interesting use case, however. Justin Rockwood - you might want to add this to the wish list.
2 of 2 people found this helpful
I am currently instantiating the Viz in my Selenum tests, and that seems to work OK. There's just more complexity here, since I need to already have a web page to add the Viz to, and I have to serve it from somewhere. As a hack, I've just been adding my Viz to an existing dashboard. What I'd like is to go the same actual dashboard that the users have, but for checking the calculations on a sheet, this isn't strictly needed.
Please keep me posted. I understand about avoiding loading extra JS, but I would think there would be handles to the needed objects stored somewhere in the DOM even for Tableau generated dashboards.
I'm looking to access Viz object in Selenium. But struggling to resolve. It would be great if can share a hack to access Viz object using Selenium.
This would really help me a lot.
Thanks in advance.
Is there any way to capture an existing viz and assign it to a variable? is this feature available now>
like one can do the same thing in the DOM: foo =
document.getElementById('bar') - example shown above.
Hi Malcolm, have you used a wait for the Webdriver when a dashboard updated or refreshed. What is the condition of the WebDriver wait?