Excel IE Automation identifying a “css” element

后端 未结 1 1162
谎友^
谎友^ 2021-01-27 18:40

Still plundering along scraping web sites, printing from web pages, etc. but ran into a snag I\'m hoping someone can help me with. The pic below is shows the tab that I\'d like

相关标签:
1条回答
  • 2021-01-27 19:26

    If the click function can't work, you could try to change the class of the tabs and the class of the tab contents to active the Location Report tab.

    You can change the Location Report tab class to active and hide the Legend tab content. Please try to replace the not working "click" part to this:

    doc.getElementById("ext-comp-1065__ext-comp-1004").setAttribute "class", ""
    doc.getElementById("ext-comp-1065__locationReport").setAttribute "class", "x-tab-strip-active"
    doc.getElementById("ext-comp-1004").setAttribute "class", "x-panel x-panel-noborder x-hide-display"
    doc.getElementById("locationReport").setAttribute "class", "x-panel x-panel-noborder"
    

    You could check the result in IE.

    0 讨论(0)
提交回复
热议问题