QAF Reports are not populated in dashboard.htm - qaf

Got the latest code here: https://github.com/infostretch/qaf-report.
Extracted dashboard directory & dashboard.htm to the project root directory.
Ran QAF tests.
Opened dashboard.htm during test run & also after test run.
Tried to open dashboard.htm in Google Chrome, Firefox & Safari after giving permissions to access local files. But Dashboard.htm did not load anything. A spinning icon is displayed continously even after several minutes.
Am I missing anything here?

If you are accessing reports locally as file protocol, browser may have restriction to access local files. In such case follow the steps to allow local file access from file for the browser you are using.
Firefox:
go to about:config
set security.fileuri.strict_origin_policy:false.
Safari:
Click on the Develop menu in the menu bar.
Select Disable Local File Restrictions.
If develop menu is not available, Click on the Edit > Preferences > Advanced tab. Check "Show Develop menu in the menu bar.
chrome:
Close down your Chrome browser (make sure you close all instances if you have multiple windows open)
Go to Run and type the following command: chrome.exe --allow-file-access-from-file.
Hit enter.
Reference from local-report-access

I just want to give more clarity by making little corrections to the existing steps mentioned here:
https://github.com/infostretch/qaf-report#local-report-access
When you are opening report "dashboard.htm" from local file system, your browser may have local file access restrictions.
In that case, you can do following setings:
Firefox:
Enter "about:config" in the browser url field & click on the button "Accept the Risk & Continue".
In the "search preference name" field, enter "security.fileuri.strict_origin_policy" & click Enter & click on the toggle button towards the right to set it FALSE.
Safari:
Click on the Develop menu in the menu bar.
Select Disable Local File Restrictions.
If develop menu is not available,
1. Click on the Safari > Preferences > Advanced tab(in MAC, Safari > Preferences > Advanced tab).
2. Check "Show Develop menu in the menu bar.
Chrome:
In Windows PC:
Close down your Chrome browser (make sure you close all instances if you have multiple windows open)
Go to Run and type the following command: chrome.exe --allow-file-access-from-file.
In MAC
Open your terminal anywhere, make sure Google Chrome is currently not running, copy paste this line and hit enter:
open /Applications/Google\ Chrome.app --args --allow-file-access-from-files

Related

How to make Developer Tools in MS Edge to default to Console tab instead of Sources?

Whenever I open the Developer Tools or if the web page is refreshed, Tools will switch to the Sources tab.
When I'm debugging code, I want it to stay on the Console tab. Is there a way to do this? Or even keep Console on-top.
Well, I've searched about this issue and I found that there is a setting in the default configuration of the developer tools to automatically foucus the Resource tab when a breakpoint is triggered, this should be the cause of the problem.
But you can disable this option by following these steps:
In Edge, open devtools in any way.
Focus in devtools and press key F1 to open settings panel.
In Preferences tab, scroll down and find the option Focus Sources panel when triggering a breakpoint.
Uncheck this option and restart open devtools.
Something like this below:

Can't get my .html files to save in chrome

When I click the "save as" button on Notepad and save it, it has the Edge icon instead of the Chrome one on the file icon and opens in Edge instead of ChromeImage:
Probably your default browser is Edge.
Set your default browser to Chrome.
https://support.google.com/chrome/answer/95417?co=GENIE.Platform%3DDesktop&hl=en
As already informed by the other community member that on your machine, MS Edge legacy browser is set as a default browser.
That's why it is showing the Edge browser logo on the HTML file.
If you want to change your default browser then you can try to refer to the steps below.
Open Settings on your Windows 10 OS.
Click on Apps.
Click on the Default apps option from the left sidebar.
On the right side of the settings window, you can see the web browser option.
click on the browser will show you the list of the installed browsers on your machine. You can click on the desired browser to make it your default browser.
If you don't want to change the default browser then you can try to use the Open with option to open the HTML file with any other browser.
Select the HTML file.
Right-click on HTML file.
Hover the mouse pointer on Open with option. It will show you the list of the installed browsers.
You can click on the desired browser to open the file with that browser.

How to enable "Allow Remote Automation" in Safari programmatically

I am using macOS Sierra 10.12.4 with safari version 10.1
I need to enable the Allow Remote Automation option in Develop tab in Safari programmatically.
I can run the below command which changes the com.apple.Safari.plist file in the ~/Library/Preferences and that enables the Develop menu perfectly.
`defaults write com.apple.Safari IncludeDevelopMenu -bool true`
However I did not find any option to enable the "Allow Remote Automation"
Any idea which plist contains that info?
It is not possible to toggle the setting using the method you described.
Starting in Safari 11, you can force safaridriver to authenticate by using the --enable command line option. After authenticating, this menu item will be set. This will also cache the authentication for the rest of your login session. Subsequent invocations of safaridriver (say, by the Selenium libraries) will not need further setup.
It can also be done using AppleScript if it is not possible by modifying the plist. To do that, first enable develop from Safari preferences and then choose Allow Remote Automation from the Develop menu.
Here is the AppleScript that I wrote to enable Allow Remote Automation (this covers both the steps mentioned above).
tell application "Safari" to activate
delay 2
tell application "System Events"
tell application process "Safari"
keystroke "," using command down
set frontmost to true
tell window 1
click button "Advanced" of toolbar 1
delay 2
set theCheckbox to checkbox 4 of group 1 of group 1 of it
tell theCheckbox
if not (its value as boolean) then click theCheckbox
end tell
delay 2
keystroke "w" using command down
delay 2
end tell
tell menu bar item "Develop" of menu bar 1
click
delay 2
click menu item "Allow Remote Automation" of menu 1
delay 2
end tell
end tell
end tell
tell application "Safari" to quit
Note: Here I enabled develop menu from safari preferences only if it is unchecked.
Hope this helps..

Developer tools in windows edge browse localstorage

I'm trying to use the new windows Edge browser for my web development.But just can't find any way to browse localstorage, cookies etc. inside the developer tools. How do I view them?
Best regards
They are here: Debugger tab -> Folder icon on the left, under the "play" icon.
you can check localStorage object in the Console
Open F12 Developer Tools (press F12)
Go to Console tab
type localStorage in the input and click run/press enter. check the screenshot

Disable the "Not available for your platform" on the addons.mozilla.org

Does anybody know how to disable this message and also to disable gray "Download" buttons?
I wanted to download some addons for Android platform from my desktop PC. When I load an addon page in Firefox it doesn't allow me to "Save Link As..." and the button is gray.
I can only do it if I rightclick the button fast, before the site checks the platform and disables the link.
Random example:
https://addons.mozilla.org/en-US/firefox/addon/slimsearch/
I am using Firefox and above is for Android and the button is grey and it says: Not available for your platform
Here are a few options:
Right-click on the button, "Save Link As...", then save it to your computer
Right-click on the button, "Copy Link Location" and then paste it in any download manger (or another browser) to download.
If you have FlashGot installed and have a download manger, ALT + clicking the button will send the link to your download manager.
Update based on the added info:
Example: https://addons.mozilla.org/en-US/android/addon/close-all-tabs-mobile/
Run the following script in Scratchpad
document.querySelector('div.install-wrapper a').classList.remove('concealed');
An easier method is to create a bookmark to run the script (I often do that and use Bookmarks toolbar for it)
javascript:void(document.querySelector('div.install-wrapper a').classList.remove('concealed'))

Resources