Object reference not set to an instance of an object


#1

Getting ths errror while trying to open google - Object reference not set to an instance of an object


#2

Hi,

Please check application properties details.
If that is correct please share screenshot in case the issue is persistent.


#3

@AMIT_ANAND15, every time i run the google for 1st time its fine, but then i either get “object instance reference error” or “failed to attach to IE window error”. For 1st time it runs perfect but then ths is happening.


#4

added automation sequence


#5

Object reference error


#6

Hi,

After running for first iteration are you making sure as a last step that you navigate back to original screen so that first interaction can execute correctly in second iteration

Regards,
Amit


#7

i dint get you…i have attached the automation properties flow…what should i do to check this


#8

Hi,

Once you perform search in first iteration you navigate to second page in google. So , before the second iteration you need to ensure that application is in its original state, other wise it will not be able to set text in configured text box and click on Button


#10

Hi,

Find By is used to find a web ui element in a web page. Which UI element on this web page ( http://www.way2sms.com/) you want to select,


#11

the logging in page, mobileNo and password


#12

@amit_anand15

the logging in page, mobileNo and password


#13

Hi,

You can find it by scrapping the fields using scrapping tool available. Following is the screen shot for selector of the mentioned elements.

MobileNum

Password


#14

Yes anand…i am geting the control but when i set value …its not taking the value from input source…bt it sets value as 0…whereas if i give values as default its taking…


#15

Hi,

Create two input argument of type string and then try to set value.


#16

My value in 2 arguments are same…so used same argument for both…will that create issue?


#17

No, that will not create an issue unless you modify value of argument