Forum Discussion
rraghvani
Champion Level 3
Read throught https://community.smartbear.com/t5/TestComplete-Questions/Why-is-it-so-problematic-to-add-python-modules-and-why-are-there/m-p/237811#M103796 as I have explained the answer
wanni
3 years agoOccasional Contributor
import sys
sys.path.insert(0, r"D:\package")
#from lxml import etree
#from pywinauto.application import Application
import time
import serial
def a():
#获取本地的html文件,parse()
Log.Message(sys.path)
html = etree.parse(r"D:\fsdata\cyptube2017\machine.config")
result = html.xpath("//MachineConfig/TripRecord/@LubricateTripX")
Log.Message(result[0])
已经insert了,还是不可以;并且第一次可以跑通,第二次报警。
请注意审一下题可以吗,看了下答案,你的回答中并没有说明,按照当前设置后,还是不行的解决方案。
Related Content
Recent Discussions
Working with Visual Test
Solved2 days agoBypassing TC engine
Solved2 days ago