safari

Safari browser is not identifying the button based on cssSelector or xpath

≡放荡痞女 提交于 2020-01-25 09:03:22
问题 My tests are Failing while running the in the Safari browser pointed to Browserstack cloud env. Could anyone please advise on how to fix the problem here. When a button is clicked, system displays a Modal Overlay and the "Show results" button is displaying inside the Modal overlay I have tried the test with xpath and By.cssSelector() way to grab the button, but still not good. WebElement showResultButton = driverSafari.findElement(By.cssSelector("div.modal-content .app-modal-footer.modal

Safari 6 doesn't show scrollbar in OSX mountain lion

做~自己de王妃 提交于 2020-01-25 07:36:26
问题 This is so weird. Safari 6 doesn't seem to show a scrollbar on elements with overflow-y: scroll. <ul> <li>something</li> <li>something</li> <li>something</li> <li>something</li> <li>something</li> <li>something</li> <li>something</li> <li>something</li> <li>something</li> <li>something</li> <li>something</li> <li>something</li> <li>something</li> <li>something</li> <li>something</li> <li>something</li> <li>something</li> <li>something</li> </ul>​ ul { background: #f1f1f1; width: 400px; height

Safari 6 doesn't show scrollbar in OSX mountain lion

ε祈祈猫儿з 提交于 2020-01-25 07:36:23
问题 This is so weird. Safari 6 doesn't seem to show a scrollbar on elements with overflow-y: scroll. <ul> <li>something</li> <li>something</li> <li>something</li> <li>something</li> <li>something</li> <li>something</li> <li>something</li> <li>something</li> <li>something</li> <li>something</li> <li>something</li> <li>something</li> <li>something</li> <li>something</li> <li>something</li> <li>something</li> <li>something</li> <li>something</li> </ul>​ ul { background: #f1f1f1; width: 400px; height

Cannot find variable in a simple function inside a for of loop (safari)

喜你入骨 提交于 2020-01-25 00:20:28
问题 I'm trying to discover why Safari returns a console error whereas other browsers like Chrome have no problem. There is a simple function inside a for of loop as follows: const links = document.querySelectorAll('ul > li > a'); console.log(links); // successful for (const link of links) { console.log(link); // successful function logLink() { console.log(link); } logLink(); } <ul id='test'> <li> <a class='one' href='#'>test 1</a> </li> <li> <a class='two' href='#'>test 2</a> </li> <li> <a class=

window.setTimeout() stops after page navigation in Safari

岁酱吖の 提交于 2020-01-24 20:27:38
问题 I have a page that takes 8-10 seconds to load, as the server makes an API call to an external service which crunches some big numbers. This is called after submitting a form. Initially, I showed a CSS loading animation in an overlay to show the user the page is actually doing something. I then augmented this by calling some code every 2 seconds with window.setTimeout(), updating a progress bar and showing a message saying what the system is doing. It's fake, of course, but it makes the time

Chrome, Safari and Opera do not remember password on simple form

萝らか妹 提交于 2020-01-24 10:33:11
问题 I first had the problem with an AJAX login, and after looking for a solution for hours I thought I would try something as simple as this: <html> <head></head> <body> <form id="login_form" action="login.html" method="post"> <input type="text" id="login_username" value="" /> <input type="password" id="login_password" value="" /> <input type="submit" id="login_submit" value="Login" /> </form> </body> </html> It goes to login.html but does not offer to save the password! I thought it might be a

Slow performance in hybrid AngularJS and Angular application in Safari

…衆ロ難τιáo~ 提交于 2020-01-24 10:12:04
问题 I have started recently the migration of an AngularJS application to Angular 4 using the upgrade module. One of my AngularJS directives uses a third party library (ngFlow) to upload files using XMLHttpRequest.send() . When running in hybrid mode, uploads work fine both, in Chrome and in Firefox. However, in Safari the app becomes very slow during an upload and the browser process reaches 100% CPU used. Using Safari web tools, I see that there is a lot of calls to globalZoneAwareCallback from

window.innerWidth/Height not updated in resize handler in WKWebView

心不动则不痛 提交于 2020-01-24 09:17:10
问题 I have some fullscreen web content that I update when the window changes size using the resize event. window.onresize = function() { var width = window.innerWidth; var height = window.innerHeight; ... } This works fine in the Safari app but it is not working in a WKWebView . It is giving me the wrong window dimensions when the device changes screen orientations on both iPhone and iPad in a WKWebView . Specifically for iPad I am showing the web view in a navigation controller. When I switch to

window.innerWidth/Height not updated in resize handler in WKWebView

南笙酒味 提交于 2020-01-24 09:14:28
问题 I have some fullscreen web content that I update when the window changes size using the resize event. window.onresize = function() { var width = window.innerWidth; var height = window.innerHeight; ... } This works fine in the Safari app but it is not working in a WKWebView . It is giving me the wrong window dimensions when the device changes screen orientations on both iPhone and iPad in a WKWebView . Specifically for iPad I am showing the web view in a navigation controller. When I switch to

Limit UIWebView to specific URL (Swift)

淺唱寂寞╮ 提交于 2020-01-24 08:42:52
问题 I'm trying to develop an iOS app that features a UIWebView in Swift, however I need it to only work with one domain, and any external links clicked on in that UIWebView to be opened in Safari. (E.G. All links to http://example.com will open within the UIWebView, but a link to http://twitter.com would open in Safari). I have found a couple of solutions online but the only Swift version (found here: UIWebView open links in Safari) works to open every link in Safari, I just want external ones to