Micro Focus QTP (UFT) Forums
Browser Type Mismatch - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Browser Type Mismatch (/Thread-Browser-Type-Mismatch)



Browser Type Mismatch - harshkumar1 - 01-10-2012

Hi,
When the following line is executed it throws a exception "Browser Type Mismatch",

Code:
Browser("Home").Page("Home").WebTable("StudyTable").GetCellData(CInt(rowId), counter)

I am not sure why this is happening, can anyone of you point it out.

Regards,
Harsh


RE: Browser Type Mismatch - sshukla12 - 01-10-2012

Hi,
Are u fetching this data in some variable or not. This error might be related to that only.

Regards,
Sankalp


RE: Browser Type Mismatch - harshkumar1 - 01-10-2012

I am doing that.
Its bad on my part the src code is something like this,

Code:
Dim uiData, counter

For counter = 2 to 14

uiData = uiData & Browser("Home").Page("Home").WebTable("StudyTable").GetCellData(CInt(rowId), counter)

Next



RE: Browser Type Mismatch - ravi.gajul - 01-10-2012

Check if the below modification works.
Code:
uiData = uiData & cstr(Browser("Home").Page("Home").WebTable("StudyTable").GetCellData(CInt(rowId), counter))



RE: Browser Type Mismatch - harshkumar1 - 01-10-2012

Tried that but it still gives the same error. Have attached the screen shot of the error as well.
Interesting i ran the same code from between and it worked fine, but when i run the whole test it doesn't work. In my test script i am calling External Actions. These external Actions are associated to say Object Repository A.
I have associated this test case as well to Object Repository A because of this one line code only. Do you think this is causing some problem.