Forum Discussion
shankar_r
8 years agoCommunity Hero
I'm not python script-er but as far as i know if you declare the variable as Global then you will able find the value from one class to another.
Like blow in your code:
class Common(): def FindCtrlID(): global controlID = "find from excel sheet" class test(): def Navigate_Str(): Find the control ID from Common Class Log.Message(controlID) if type==button & Action==Click CtrlId.click() elif type==textbox & Action==Sendkeys CtrlID.Sendkeys(Data from Excel)
For getting values from Excel you ca refer here https://support.smartbear.com/testcomplete/docs/testing-with/data-driven/drivers.html
Related Content
- 11 years ago
Recent Discussions
- 4 days ago