internet-explorer,selenium,selenium-webdriver,watir-webdriver,developer-tools , Developers tool(F12) is opening in Internet Explorer when it is launched by watir-webdriver


Developers tool(F12) is opening in Internet Explorer when it is launched by watir-webdriver

Question:

Tag: internet-explorer,selenium,selenium-webdriver,watir-webdriver,developer-tools

I am automating a web application on Internet Explorer using Watir-webdriver and ruby. When I run my script in my Laptop[Win7(x64) and IE11] it is running without opening Developers Tool in Internet explorer. But When I test the same script in Virtual Machine[Win8(x64) and IE10], Intenet Exploerer browser opening with Developer tool. Anyone has an idea, why this is happening? I'm using below code to launch the browser:

Selenium::WebDriver::Remote::Capabilities.ie(:ignoreProtectedModeSettings => true)
browser = Watir::Browser.new :ie

Answer:

When opening Internet Explorer, the Developer Toolbar state will be the same as when IE was last closed. In other words, the Developer Toolbar will be open if it (the toolbar) was open when IE was last closed.

Try:

  1. Log into the Virtual Machine
  2. Manually open Internet Explorer, which will automatically have the Developer Toolbar open
  3. Close the Developer Toolbar
  4. Close the browser

The next time IE is started, whether manually or via Webdriver, the toolbar should be closed.


Related:


XPath for child element


selenium,xpath
What is the Xpath to select the first element of this jquery selector: $('.A .B:eq(1)') ? HTML Sample <div class="x A z"> <div class="y"> <div class="r B z"></div> <---- that is that I need to select <div class="r B z"></div > ... So far I've tried this: (//div[(@class='A') and div[contains(concat('...

webdriver C# - click this element with XPath position?


c#,selenium,xpath,webdriver
I have an element whit this XPath Position: //td[4]/a I try this but does not work: driver.FindElement(By.XPath(".//*[@position='//td[4]/a']")).Click(); Using C# Webdriver and not java, please....

How to Find class inside in
, using Selenium WebDriver


selenium,webdriver
here is the code: <div class="padding-tlb"> ....Some code.... </div> <article class="non-article-login"> <div class="one-fourth-percent columns-percent">&nbsp;</div> <div class="one-half-percent columns-percent"> <div class="one-fourth-percent columns-percent"> User ID </div> </div> </div> </article> I want to check if exist the class "one-fourth-percent columns-percent". WebElement test = driver.findElement(By.className("one-fourth-percent columns-percent")); But...

Junit parameterized testing ,a different thought


java,selenium,junit
Here, I have a custom independent component which accept input as a jar file and identify the junit test classes from it and execute them using the code given below. Result result = JUnitCore.runClasses(cls);//cls is Class<?>instance. Next thing I required is a provision to inject parameters (Assuming that input jar...

What is the proper way to get the value of a React