Documentation for DOM command in Browsers' devtools Console - google-chrome-devtools

Are there ways to view live documentation for DOM commands on Browsers' devtools Console? The goal is that I want a faster way than opening a new tab, checking documentation and navigating back to the console.
Note for editing: I decided to attach this image to have the question more clarified.
What I am asking about is how to view "documentation of DOM" in console.

Unfortunately, there isn't a way to view the documentation of DOM APIs directly within the Chrome or Firefox DevTools.
There are ways to improve the workflow a bit, though. E.g. in Chrome you can install an extension called MDN-Dox, which adds a toolbar button for searching within the MDN documentation.
Alternatively, you can add MDN web docs to the installed search engines. In Chrome you do that by opening the settings > Search engine > Manage search engines > Add > entering the search engine info with "https://developer.mozilla.org/en-US/search?q=%s" as URL. See https://support.google.com/chrome/answer/95426?co=GENIE.Platform%3DDesktop&hl=en for more info.
For Firefox there's also an extension called MDN Search, which adds "mdn" as keyword to search for something on MDN web docs.
You can also add the search engine manually. One way to do that is to go to https://developer.mozilla.org/en-US/ > right-click the search field > Add a Keyword for this Search > entering the info. You may also read https://support.mozilla.org/en-US/kb/add-or-remove-search-engine-firefox.

Related

how to get the X path for cucumber testing?

I tried it by right clicking on the web page and there is no xpath icon. So how can I make visible the xpath of the web page. Please reply soon. Now I am learning on cucumber automation testing. It is very important to know how to find the xpath of the web page.
You can also use ChroPath to find xpath of an object. Chropath is an extension of chrome browser. It gives value of selected object. Can be seen in Developer tool only.
The java side of this may let me down, but is there a specific reason you need the xpath rather than the css selectors?
But answering your question, if you use chrome and right click on the element you want to find the selector for. The select inspect at the bottom of the menu. This will open the dev tools at the bottom of your browser.
Find the element you want to target, right click that (within the dev tools) then expand the copy list in the menu and select copy xpath. If you look at the screenshot you can see that I can copy the xpath of the google logo

How to search through all the ajax responses in network tab in Chrome?

How to search through all the ajax responses in network tab in Chrome?
I want to do this is because it is difficult for a JavaScript developer to get to know which information is coming from which service call, especially if you are new to the project and business logic is not clear. Also, opening each service in a network tab and searching in responses of so many service calls is difficult and time consuming.
This has now been implemented on the Network tab. Whenever a search criteria is added, Chrome will offer searching through all headers and bodies.
More from offical doc,
Open the Network panel then press Command+F (Mac) or Control+F (Windows, Linux, Chrome OS) to open the new Network Search pane.
This is similar to another question this morning to search json responses. The solution is the same, star this issue this issue. Starring is triggered via the star icon in the far left area of the blue title are just under search.
Starring issues let's the developers know what people need. The more stars something has, the more likely it is to get worked on sooner.
Currently this functionality is not provided and extensions are unable to add this type of functionality since the network panel isn't extensible in this way.
In Firefox you can save all the responses as a HAR file and then search through the file in a text editor (Chrome truncates the responses).
Inspector of Microsoft Edge browser offer such feature. Useful when you need to search through traffic made by an HTTPS web site that Fiddler cannot inspect (like Facebook web site).
There doesn't seem to be a way to do this in Chrome or Firefox. My solution has been to use Fiddler, which does support it.
Edit: I believe this was working for all resources at the time of writing, but please see comments because people say it is not/no-longer working as expected.
As of Chrome version 91, if you want to search through all resources (not just AJAX/fetched resources), then you need to open DevTools and then press Ctrl+Shift+F to open a search box. If you just type into the "filter" text input then it only searches through the URLs, rather than also searching the contents.

Customize basic search form and provide appropriate search results

In basic search form I have included checkboxes to detect duplicates on name & phone number.
How shall i proceed further.I have included fields on /custom/modules/Contacts/metadata/SearchFields.php and searchdefs.php.
Please help.
SugarCRM's Basic and Advanced Search field arrnagements can (and should) be configured using the Studio Tool. Log in as a System Administrator, click the Admin link in the top right corner and find the link for Studio
Within Studio, navigate to the module you're like to configure, go into Layouts, then Search, then Basic Search. The screen arrangement can be configured using drag-and-drop 'bricks' to represent the fields. All database fields for the module can be added to the Basic or Advanced search filters.
The screen can be configured using code, but I don't see why you would opt to do that. If you do, though, be sure to clear your cache using Repair and Rebuild or by enabling Developer Mode in the System Settings.

Eclipse: search text in documentation pane

Is there a way to search for text in the documentation pane of Eclipse?
E.g. see the attached screenshot showing some Android SDK documentation:
and see this screenshot showing the Search menu:
I can't see how you can do a search. And Cmd F doesn't seem to do anything either.
This is basically a web browser pane. Sadly it is quite limited in functionality, you can't search within the view (and of course not within the documentation database instead of the currently shown document).
So the work around is to open the document in a complete, external browser. In this case it is easy to find the document (http://developer.android.com/reference/packages.html) but sometimes it might be annoying to find the URL as this limited web browser view doesn't even tell it to you or gives you a possibility to get it.
If it was about site search and not searching withing the page and if the site doesn't offer a site search (this one does) then of course you can use Google with a site:developer.android.com parameter; similar for other search engines.

is there a provisioning for inspecting a winJs html file

winJs application are simple html Applications. Xaml c# provides an interface view where we can look at the design drag drop elements.
Is there a Way to Debug a winJS application like firebug or inspect element in Google Chrome. running every time in the simulator to check whether code is working or not has become a tedious Job. Any alternative please suggest.
Yes there's a kind of firebug as you mentioned But it is also known as Dom Explorer
The DOM Explorer is available only while in debug mode.
Make sure you have the script debugger selected, start debugging (F5), then go to Debug -> Windows -> DOM Explorer.
Here's a link to study the details
Dom Explorer from MSDN