Recording Locators using Selenium in Safari Browser - firefox

I am testing the action of opening a PDF. In firefox I do not get a popup, but in selenium I get a save popup window. Is there a say to record this locator? or some other approach for selenium to click on that popup which only appears in Safari. I'm using Safari browser 5.0.5. Thanks!

Related

How to select the device to cast from popup in capybara, selenium, Ruby in chrome

I am trying to select the first device from popup to cast using selenium, capybara but I am not able to do it. Please find the popup below
I have tried following and it does not seem to be working
popup = page.driver.browser.window_handles.last
page.driver.browser.switch_to.window(popup)
page.driver.browser.switch_to.alert.accept
page.driver.browser.switch_to.alert.dismiss
page.driver.browser.switch_to.alert.text
Please provide sugggestions!
You can't - that's a system dialog and selenium can't interact with it once opened. It MAY be possible to set a default to launch and prevent the dialog from opening via chrome command line switches but I'm afraid I don't know what that would be.

Katalon cannot click button in Chrome headless

[![enter image description here][1]][1]When I launch a test case in Chrome headless it fails because it can't find a button, but when I launch it in Chrome visible it succeeds. Why?
Try to take a screenshot and validate, that the element you want to click is visible. Perhaps your screen is with to small size.
Because Chrome headless doesn't perform integrated authentication. At least by default.

Unable to click the OK button in ruby watir automation

When I am try to click the OK button, its showing me like OK clicked and the corresponding popover is not closing.Once that popover closed after OK button clicked, then only the data saved successfully. But here that pop is not closing once OK clicked. Manualy its working.
With what are you using watir, selenium?
better do a script from the automation motor. The below example is for watir with AutoIt (for IE)
au3 = WIN32OLE.new("AutoItX3.Control")
au3.WinWaitActive("Authentication Required")
au3.Send("Domanin/userName")
au3.Send("{TAB}")
au3.Send("Pass")
au3.Send("{ENTER}")
for selenium would be similar. See if this other SO answer works for you. Alert Handling + Java + webdriver

How to keep Aptana tests in a single tab?

Each time I run or debug a webpage in Aptana, it opens a new tab or window in Firefox. After several runs, there are either a Firefox window with more than one tabs or multiple Firefox windows.
How could I let the Firefox reload a tab for each test run, instead of open a new tab/window each time?
You could just "save all changes" instead of make a test run. Then reload the page on firefox.

Firefox opens standard FB.login popup in a new tab instead of dialog

Using the stock code found here: http://developers.facebook.com/docs/reference/javascript/FB.login/
FB.login is bound to a jquery click event on my button.
On Chrome it opens successfully in a popup.
On Firefox it opens in a new tab.
How do I get the popup back in Firefox?

Resources