<SPAN class="keyword token">import</SPAN> arcpy
mxd <SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>mapping<SPAN class="punctuation token">.</SPAN>MapDocument<SPAN class="punctuation token">(</SPAN><SPAN class="string token">"CURRENT"</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="comment token"># The text element is a textbox</SPAN>
elm1 <SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>mapping<SPAN class="punctuation token">.</SPAN>ListLayoutElements<SPAN class="punctuation token">(</SPAN>mxd<SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"TEXT_ELEMENT"</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"closeup1"</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">[</SPAN><SPAN class="number token">0</SPAN><SPAN class="punctuation token">]</SPAN>
<SPAN class="keyword token">if</SPAN> mxd<SPAN class="punctuation token">.</SPAN>dataDrivenPages<SPAN class="punctuation token">.</SPAN>currentPageID <SPAN class="operator token">==</SPAN> <SPAN class="number token">1</SPAN><SPAN class="punctuation token">:</SPAN>
elm1<SPAN class="punctuation token">.</SPAN>visible <SPAN class="operator token">==</SPAN> <SPAN class="token boolean">True</SPAN>
<SPAN class="keyword token">elif</SPAN> elm1 <SPAN class="operator token">!=</SPAN> <SPAN class="number token">1</SPAN><SPAN class="punctuation token">:</SPAN>
elm<SPAN class="punctuation token">.</SPAN>visible <SPAN class="operator token">==</SPAN> <SPAN class="token boolean">False</SPAN>
<SPAN class="keyword token">if</SPAN> mxd<SPAN class="punctuation token">.</SPAN>dataDrivenPages<SPAN class="punctuation token">.</SPAN>currentPageID <SPAN class="operator token">==</SPAN> <SPAN class="number token">1</SPAN><SPAN class="punctuation token">:</SPAN>
<SPAN class="keyword token">print</SPAN> <SPAN class="string token">"yes"</SPAN>
<SPAN class="keyword token">elif</SPAN> mxd<SPAN class="punctuation token">.</SPAN>dataDrivenPages<SPAN class="punctuation token">.</SPAN>currentPageID <SPAN class="operator token"><></SPAN> <SPAN class="number token">1</SPAN><SPAN class="punctuation token">:</SPAN>
<SPAN class="keyword token">print</SPAN> <SPAN class="string token">"no"</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
Anyone familiar with Graphic Element Visibility property. It doesn't work for me.
I used the print statements to verify current page which is working fine.
I referenced http://pro.arcgis.com/en/pro-app/arcpy/mapping/graphicelement-class.htm
and there isn't a good example.