Forum Discussion

devi_qa13's avatar
devi_qa13
Occasional Contributor
12 years ago

IE-11 Browser Setting Issue

Hi,

I need a help on this, until yester the test was running and recording fine, after I change the setting  IE-11 (follow the steps from Preparing Internet Explorer for Web Testing) old test not running and script also not running. recording new it is failing.



If anybody know how to fix this please help me





Thank you in advance.



17 Replies


  • Hi Devi,


     


    What exactly did you change? If you restore the setting, will the test work?


     

  • devi_qa13's avatar
    devi_qa13
    Occasional Contributor
    Hi Tanya,



    Thank you for your reply. I did reset the IE setting, right now this is my setting (attached).



    Tha record and playback sometime it is paly back, somtime it won't for  the same script.



    I need a help on this setting. please help me.



    Thanks,

    Devi

  • Hi Devi,


     


    Do you get any errors when the test isn't played back successfully? Can you post them here?


     

  • devi_qa13's avatar
    devi_qa13
    Occasional Contributor
    Hi Taniya,



    when I run the script it is over writing for example username password in same textbox.



    and overlapping



    I am attaching two screen shots



    please help me...
  • Ravik's avatar
    Ravik
    Super Contributor
    I am also facing issue with TestComplete 9.3 and IE 11 browser.



    While I am executing my script in IE 11 browser it's given error like "Object does not found/ Object overlap..."



    is there any patch we need to install.



    Thanks

    Ravik
  • AlexKaras's avatar
    AlexKaras
    Community Hero
    Hi Ravik,



    AFAIK, IE11 support was added to TC 10.0, so it is expected to have problems testing IE11 under TC 9.x.
    • Kaeshiker's avatar
      Kaeshiker
      Regular Visitor
      Hi All, I need a help on this, until yesterday the test was running and recording fine, after my company upgraded IE version from IE 9.0 to IE-11 (follow the steps from Preparing Internet Explorer for Web Testing) old test not running and script also not running. Recording new it is failing I’m getting this attached error for all my scripts It is Blocker for my testing If anybody knows how to fix this please help me Thank you in advance. Kaeshiker
  • yabing's avatar
    yabing
    Occasional Contributor

    Hi,

     

    I have a same issue. My scripts work fine with IE10.0.9200.17609 by using TestComplete12 in Windows 7 Professional SP1(local machine). I cannot launch IE browser use TestComplete12 with IE 11.0.9600.18525 in Windows Server 12 R2 Standard (visual machine).

    I followed up "Preparing Internet Explorer for Web Testing" settings but it didn't work.

    I really need a help!

     

     

    Thanks,

    Yabing

  • yabing's avatar
    yabing
    Occasional Contributor

    Hi All,

     

    My test running ok against IE11 on Virtual Machine (Windows 2012 R2 Standard). A few days after, when I run my test, I get "pageObj.FindChildByXPath(...).Keys is not a function" or hanging. it happened in  It works in Chrome on my VM.

    My code works fine on IE9 and Chrome 43.0.2357.65 on my local machine.

    I tried to increase delay time, it didn't work.

     

    My code:

    var propertyPageObj = Sys.Browser().Page("*");

    PropertyPage.setElement2Variable(suiteVariableObj);

    // Click "ADD" button to display "New" button for adding a new property
    propertyPageObj.FindChildByXPath(suiteVariableObj.btnAddProperty).Click();
    Delay(500);

    propertyPageObj = Sys.Browser().Page("*");

    // Click "New" button to new a property on "Properties" page
    propertyPageObj.FindChildByXPath(suiteVariableObj.btnNewProperty).Click();
    Delay(500);

    propertyPageObj = Sys.Browser().Page("*");

    // Enter "Street Number"
    propertyPageObj.FindChildByXPath(suiteVariableObj.txtboxStreetNum).Keys("661");
    Delay(1500);

    // Enter "Street Name"
    propertyPageObj.FindChildByXPath(suiteVariableObj.txtboxStreetName).Keys("Century");
    Delay(1500);

    // Enter and select street type "ST-St" at "Street Name" line
    propertyPageObj.FindChildByXPath(suiteVariableObj.txtboxStreetType).Click();
    propertyPageObj.FindChildByXPath(suiteVariableObj.txtboxStreetType).Keys("ST-St");
    Delay(1000);

     

    Does somebody get the same issue and has a solution?

     

     

    Thanks,

    Yabing

    • tristaanogre's avatar
      tristaanogre
      Esteemed Contributor

      So... you have the following code:

       

       

      propertyPageObj.FindChildByXPath(suiteVariableObj.txtboxStreetNum).Keys("661")

       

      So... the question is... what does your code do if it is unable to find the child object?  

      See, if it can't find the object, then propertyPageObj.FindChildByXPath(suiteVariableObj.txtboxStreetNum) returns a null object... basically, nothing... so, it can't execute the Keys function... because there is no Keys function on the null object.

      Better coding practice is to first check to see if you find the object before you try any processes against it.

      My guess is that the XPath is different on IE11 than it is on Chrome... hence why it's working on Chrome.  So... if the XPath is different, the function will return null, and your code will error out.

      Double check the XPath in the IE environment. I'm betting it's different... in which case, you're going to need to go a little fancier with your suiteVariableObj.txtboxStreeNum and actually make it "smart" to detect the browser type and return a different XPath.

      • yabing's avatar
        yabing
        Occasional Contributor

        Hi Robert,

         

        Thank you for your reply. My first two lines (highlighted) just put values in text box, the third one enter a value and than select dropdown list. Errors didn't happen always. Sometime happened in the first line, sometimes on the second one. It's randomly happened. I increased delay time from 500ms to 2500ms, they work now.

        You mentioned that Chrome and IE11 xPath may different. Just wondering that IE10 and IE11 xPath are the same or not.

         

         

        Thanks,

        Yabing

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor
    What AlexKaras said is correct and is why I don't use Find Child methods as much... they don't incorporate that wait time. You end up having to build your own Wait loop in code or use hard coded delays.