Find new pass and store to the global variable

I implemented possibility to open letter with reset pass but I can not understand how to store this new pass to Global Variable to use it in test Suite

GlobalVariable.G_Pass.setValue(WebUI.getText(findTestObject(‘newpasss’)))

newpass I am searching using xPath

/html/body/div[7]/div[3]/div/div[2]/div[1]/div[2]/div/div/div/div/div[2]/div/div[1]/div/div[2]/div/table/tr/td[1]/div[2]/div[2]/div/div[3]/div[2]/div/div/div/div/div[1]/div[2]/div[5]/div/div[1]/table/tbody/tr/td/div/table/tbody/tr[3]/td/table/tbody/tr[2]/td[2]/table/tbody/tr[2]/td[2]/span