how to select table column by column header name with xpath

后端 未结 3 1083
礼貌的吻别
礼貌的吻别 2021-02-05 18:57

I have a table of results and it looks like following:

When run with "Name" as the parameter value:


  

提交回复
热议问题
Id&
3条回答
  •  死守一世寂寞
    2021-02-05 19:23

    If you've found a solution, I suggest posting it as an answer here, but just for fun, this is how I would approach this:

    
      
    
      
      
    
      
        
          
        
      
    
      
        
          
        
      
    
      
        
          
        
      
    
    

    When run with "Price" as the parameter value:

    
      
$10 $20 Premium Copier paper Extra Copier paper