Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Browser Type Mismatch
#1
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
Reply
#2
Hi,
Are u fetching this data in some variable or not. This error might be related to that only.

Regards,
Sankalp
Reply
#3
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
Reply
#4
Check if the below modification works.
Code:
uiData = uiData & cstr(Browser("Home").Page("Home").WebTable("StudyTable").GetCellData(CInt(rowId), counter))
Reply
#5
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.


Attached Files Image(s)
   
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Different Type of Dropdown Selector zunebuggy 6 4,519 05-01-2018, 06:46 PM
Last Post: zunebuggy
  cannot use the type method on object and submit is not working jove1776 5 9,925 01-27-2015, 10:08 PM
Last Post: Parke
  How to import .xlsx file type to QTP qtped 3 7,386 03-27-2014, 01:33 PM
Last Post: Ankur
  type mismatch error in QTP QAlearningQTP 1 7,622 02-04-2014, 08:14 AM
Last Post: QAlearningQTP
  QTP 11.52---Type mismatch error srinijg20 4 5,015 08-26-2013, 03:51 PM
Last Post: GregHicks

Forum Jump:


Users browsing this thread: 1 Guest(s)