import arcpy
mxd = arcpy.mapping.MapDocument("CURRENT")
elm1 = arcpy.mapping.ListLayoutElements(mxd, "TEXT_ELEMENT", "closeup1")[0]
if mxd.dataDrivenPages.currentPageID == 1:
elm1.visible == True
elif elm1 != 1:
elm.visible == False
if mxd.dataDrivenPages.currentPageID == 1:
print "yes"
elif mxd.dataDrivenPages.currentPageID <> 1:
print "no"
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.