Getting Coordinates from Selenium IDE - html

I am trying to work with the Selenium IDE on Firefox. I was wondering does anyone one know a way to get an element's/widget's coordinates directly from the IDE? Is there an add-on or some option that already exists? Because at the moment it is not providing me with enough information for each thing I click on.

You can use Web Developer, which is an Add-on of firefox.
After installation, perform following:
Click on Miscellaneous and select Display Line Guides
Click on Add Horizontal Line Guide button to add the horizontal line to get the Y Coordinate of Element and Click on Add Vertical Line Guide button to add Vertical line to get the X coordinate of Element
scroll horizontal/vertical line such that the element's position comes to the intersection of the lines.
Select Lines to see the coordinates just right to the Add Vertical Line Guide button

Almost every image editor program has such a feature. For instance, try opening any image in "The Gimp", and the coordinates you need will show up on the bottom left corner of the window.
if you take print screen of windows and paste in Paint then you also get coordinated.
see
use assertelementheight command with locator show you actual value
assertElemenrHeight | locator | 203

Related

How to make button movable in google sheet?

I am making a GUI-based data management system using google sheet and app script. I have inserted two buttons using the draw option. But I cannot move that button to the bottom of the sheet where it needs to be. Whenever I tried to move that button a red line is appearing there; as you can see on the image. So please help me what should I do?enter image description here
The red line in simply a rule line. Its purpose is to help you line up the drawings. In your screenshot, the rule line shows that the bottom of Update currently lines up with the bottom of Next.
You can go ahead and drag across the line to move a drawing further down. To make drag and drop easier, you may want to temporarily unassign scripts in the buttons, or select a button by right-clicking it and then move it using the arrow keys rather than the mouse.

How to activate the main window of PhpStorm after clicking its floating Find in Path window

Let me explain the situation.
I need to copy a lot of instances of a text inside a project of PhpStorm. So, I perform a 'Find in Path' action and a floating window appears with the matching results.
Now my problem is that after copying once from the floating window, if I click on another app window, then PhpStorm's main window/PhpStorm itself go to background, then if I want to copy text from the floating window again, I can not use any keyboard shortcut, I can not modify any line in the floating window because PhpStorm stays in background/inactive-mode even if I click on its floating window.
If I click anywhere in the PhpStorm except the main top-white bar of PhpStorm, then the floating window disappear, which causes me to perform the search again.
It is reducing my productivity a lot. Is there any way to make the PhpStorm active or bring it foreground when clicking its floated search window?
Please see the screenshot:
Is there any way to make the PhpStorm active or bring it foreground when clicking its floated search window?
You are approaching the problem from the a bit wrong angle. There is a better solution than fighting the focus/foreground state.
There is a button in the bottom right corner of "Find in Path" window ("Open in Find" it says on your screenshot) -- click it and it will open search results in traditional / standard Search Results tool window (with grouping by folders/files, preview area etc)... so no floating and no auto closing on clicking somewhere.
P.S. Lots of people forgetting that results shown in this new "Find in Path" dialog/popup is still just a preview (TOP 100 matches only). Super functional (you can edit and stuff) but still preview only. This mainly applies to those who remember the way how this dialog (back then it was dialog window) looked before redesign (now it's more of a popup).
Because of the way how it is all presented now (results occupy majority of the popup space) people somehow automatically forgetting about "traditional" way of searching (clicking actual "Find" button to get search working) and focusing only on what they see on a screen right now.
This new "Find in Path" dialog/popup adds a lot of convenience for sure (you typed search text and results are straight away before your eyes). At the same time quite often you may see/hear "it does not show me all results" frustrated comments (as it shows top 100 .. and a single file may have 100+ hits in some cases) and alike. JetBrains needs to improve UX a bit in this area for sure.

Google Chrome dev tools variable tip bubble too little to see the content

I have just now sended the following message to google chrome developer:
Chrome version: 54.0.2840.59 m
As you know, when debugging a web page with javascript, the Chrome
debugger allows to pause the execution of the code on breakpoints. In
this moment is possible to move the mouse onto a variable to see what
value has in: when the mouse is on the variable chrome code
inspector/debugger shows a little tip showing the variable value.
The problem is that such little bubble tip sometimes is toooo little
and it is not possible to see the content.
Please correct its size (make it resizable) to make possible to read
its content or it isn't useful.
Thanks
Anyone else has noticed the same issue?
Someone has solved it?
Edits
Before the last update was working perfectly (or at least I didn't see anything wrong in its behavior!), but now the following image shows the issue that sometimes happens:
As shown into the above img, part of the bubble tip content is shown, part is hidden, and it is not possible to scroll the bubble tip neither up|down nor left|right: scrollbars are greyed. Sometimes scrollbars don't appear at all.
You can scroll the tool tip as per the animation below:
A possible workaround could be adding the variable to the watch list:
Procedure:
right click on the variable
Into right click menu click on "Add selected text to watches"
This allows to keep an eye on the watchlisted var contents, even if they hidden into the bubble tip.
It is not completely handy, but works.

Find and Replace in Google Script Editor

I have questions about the Google Apps Script Editor.
When using the Find and Replace menu in the script editor, how can you make your search case sensitive? There's no "match case" option. Is there some way with regular expressions?
I'm working on a rather small screen and since the search is normally not case sensitive I can't see when it's locating what I'm looking for.
I was also wondering if the Find/Replace popup is supposed to be moveable since I just end up highlighting text if I try to drag it. The "Find" popup in the Google Docs Spreadsheet app can be moved, I would expect this one to behave similarly.
You can drag the find box right out of the way by clicking within the single line phrase "Find and replace" and then dragging away from the central area.
Unfortunately you can't use regex (AFAIK).
There is no case-sensitive search in the editor, but it's been requested. Visit and star Issue 1593.
The search window is movable, but you need to grab something inside the dialog container. I usually grab it by the caption, "Find and replace".
I prefer to not drag the window out of the way but permanently (at least while working that day) to the far top right corner with all of the wasted padding removed.
-Right-click on the window to open the menu, choose "inspect"
-In the window that opens, look up the domain text until you see
<div class="maestro-dialog" role="dialog"
-Click on that line in the DevTools
-On the right side, change the Style settings under .maestro-dialog to be:
*uncheck the padding line
ADD
right: 20px!important;
width: 440px!important;
left: unset!important;
top: 0px!important;
The box moves and will stay there every time you open the search....so long as you don't close the window with the DevTools (of course, you can hide it, but don't click the top-right "x")

Monodevelop: can't drag widgets

I am trying to use monodevelop. Just at the beginning I came across an issue:
I was following a tutorial on building a Gtk application (http://monodevelop.com/Stetic_GUI_Designer). I was trying to drag a button from the Widgets Palette. Nothing happened. I'd been trying quite a few times without any luck.
After a break I launched monodevelop again and I simply placed a button on the window of the application. After that I removed it, dragged VBox container, and placed menu bar on the window, according to the tutorial instructions. I was pleasantly surprised.
By the second try the same problem occurred - I was not able to drag any widgets. Dragging was beginning, there was a “+” sign at the cursor and then - nothing was happening. I cannot figure out what happened by the first time, what the difference was. Have anyone had a similar problem? Monodevelop looks promising, but I can't go on with it. (I tried placing 'Fixed' container on the window, with no result - I could not drag it.)
(monodevelop v. 2.4, ubuntu 11.04, Polish language.
I did look for an answer to my problem, without much luck, that is why I post this question. The problem is described quite precisely. There is a probability that others encountered the same issue.)
You need to drag a container on the form first before you can add widgets to it. The VBox container is an example of a place where you can put your widgets.
If you want to place widgets where ever you want you can use the Fixed container. If you want things to align you can use the VBox, HBox or Table containers. Placing in a widget in one of the fields will automatically adjust the size of this field to fit the widget you have dragged into it.
So basically,
Create a form
Drag a container on the form
Drag a widget inside the container.
These widgets are not to be confused with the custom made widgets (in your Solution browser, right click the folder User Interfaces and click Add Widget...). These are like forms. I use these to create GUI's in advance so I can call these while the program is running.
FYI: if you want to create code for a widget (like a button) you can't just double click it like in Visual Studio. You need to select it, the go to the properties pane, and change the tab from Properties to Signals. You can then double click the "signal" to create the event for which you want to create code. For a button this is usually the Clicked event (somewhere at the bottom of the list, you'll need to open the Button Signals)
You can always visit the IRC channel of Monodevelop on irc://irc.gimp.org/monodevelop (IRC.Gimp.org #monodevelop)
I also sit in this channel and can help with smaller problems and I also still use Monodevelop 2.4.