def gsub_set(line)
      return nil if line.gsub(/(\A#{WD_HUB_PREFIX_MATCH}|'\z)/, '').nil?

      line.gsub(/(\A#{WD_HUB_PREFIX_MATCH}|'\z)/, '')
          .sub(':sessionId', ':session_id')
          .sub('element/:elementId', 'element/:id')
          .sub(':windowhandle', ':window_handle')
          .sub('equals/:otherId', 'equals/:other')
          .sub('css/:propertyName', 'css/:property_name')
          .sub('element/:id/pageIndex', 'element/:id/page_index')
    end
def gsub_set(line)
      return nil if line.gsub(/(\A#{WD_HUB_PREFIX_MATCH}|'\z)/, '').nil?

      line.gsub(/(\A#{WD_HUB_PREFIX_MATCH}|'\z)/, '')
          .sub(':sessionId', ':session_id')
          .sub('element/:elementId', 'element/:id')
          .sub(':windowhandle', ':window_handle')
          .sub('equals/:otherId', 'equals/:other')
          .sub('css/:propertyName', 'css/:property_name')
          .sub('element/:id/pageIndex', 'element/:id/page_index')
    end
rubocop:enable Lint/PercentStringArray