In chrome we have Webrtc-Internals page I am trying to automate this website but I have a problem in doing it when you click on "Create Dump" dropdown we have two checkbox's
and
I am trying to click this element using "--headless" chrome without headless if you click it opens "save as" dialog box which cannot be automated using selenium cause it os-dialog box but when it comes to headless by click nothing popups and check box is not enabling no exceptions was shown, If you have an idea to automates this it would be helpful,
Sample code (Java) :
driver.get("chrome://webrtc-internals/");
driver.findElement(By.xpath("/html/body/p/details/summary")).click();
driver.findElement(By.xpath("//*[#id='content-root']/details/div/p[5]/label/input")).click();
driver.findElement(By.xpath("//*[#id='content-root']/details/div/p[1]/label/input")).click();
Thanks on advance!
Tried sendKeys also not working,
In a case it enables but can't save recording, Tried different type of chrome version
Related
I want to click on flash button which should open a new tab and in turn I need to do some operations on that page and return to the main page. Can anyone help with the code in Java? I have seen that flash doesn't work on Selenium, if so what are the alternatives?
I never tried, but i found this link, http://www.adobe.com/devnet/flash/articles/flash_selenium.html, maybe is useful for you. Is a plugin to use selenium in Flash front end
I am using selenium webdriver to automate my application , using firefox and chrome as two browser. My application require Gemsafe software support, due to this a popup is appearing on when I am launching the application just below the the address bar, text is “Allow and don’t allow”. I am not able to handle this popup. Can anyone know help me out on this ?
I'm not sure but I think this is the small yellow toolbar right below the address bar that is warning you that Gemsafe, etc. needs to be enabled on the site and prompts the customer to Allow or not.
If so, this is not part of the HTML of the page and cannot be interacted with using Selenium. The simple way to determine this is to right-click on the "popup" and see if you can Inspect Element, etc. If not, it's part of the browser and can't be accessed using Selenium.
I would recommend that you set each browser up in such a way (before the tests) that the Gemsafe software support is already set up. I think a customer would only have to click Allow once for a site, just do that on each supported browser (sounds like only Chrome and FF). There may be some browsers where additional setup is required to permanently allow this. You will have to do research for those browsers.
I am using Selenium Webdriver with Java. I have an issue: when I click on menu button, the menu control is notfound in safari browser. How do I solve it?
For this problem you have to use short cuts.
For example you need to open FILE menu then you have a short cut "ALT+F"
You can do this with Actions class in Selenium web driver.
Example:
new Actions(driver)
.keyDown(Keys.ALT)
.sendKeys("F")
.keyUp(Keys.ALT)
.perform();
Here I have use ALT + F key to open menu.
Your problem is solve easily by this code.
===============================================================
Note : If there is bug or defect in Safari Menu then This will not work properly. So please check it manually first then apply automation on that.Save time. :)
How to open firefox "open menu" using keyboard shortcut?
I am unable to find the keyboard shortcut on google. I want to automate the process using selenium as I want to open an installed add on.
For an automation task like this you maybe using the wrong technology.
Have you tried using AutoIt for a task like this? Then switching back to Selenium when you need to interact with the DOM?
You can reach some of the main menu's options via the hidden extended menu set which can be shown after pressing Alt when not in fullscreen mode.
When using the WebDriver driver for Chrome a chrome window opens, and navigates to the specified page.
Is there a way to stop the window from opening?
Edit: I am using it to scrape the web page so there is no need for me to see the actual webpage. The desired behaviour would be that the scraping would be done "Silently"?
What you are talking about is called a headless browser.
You have several options to choose from:
fake a display and let selenium and a browser think you have a real one. See xvfb.
use PhantomJS browser
run your tests against BrowserStack or SauceLabs selenium servers (or have your own one)
See also:
Selenium Headless Automated Testing in Ubuntu
Getting Started with GhostDriver & PhantomJs