WatiN editing popup - watin

I'm trying to edit textfields in popup, it appears and does't close browser.Element(Find.ByText("testas1")).DoubleClick();
But still can't find textfield. Any suggestions what's wrong?

browser.HtmlDialogs[0].TextFields[0].TypeText("T");

Related

Opening comment box in the same page

I want to open a text area when i press the comment button without page getting reloaded.Please help.I am a newbie in this field.
I have tried seeing some tutorials but not of much help.I have never used Jquery before
Use this jQuery code:
hide the textArea element by default.
$("#[buttonID]").click(function(){
$("#[textAreaID]").show();
}

How to click on the `OK` button on the confirmation window using selenium-webdriver?

I am writing a file deletion script using selenium-webdriverfrom the webpage. Now when I clicked on the RED cross button as in the below image,getting another confirmation window on the page.
Any idea how to click on the OK button?
Have you tried with below logic?
Alert alert = driver.switch_to.alert
alert.accept
The below code finally works to handle the picture mentioned modal window:
driver.switch_to.alert.accept

How to call a YUI panel/dialog without a button

I am building an OS type GUI. I have a start menu that is like Windows. I need to be able to call a panel (newPanel.show()) without it being a button. When I use the right call out of a button it refuses to show the panel or div. Any help is appreciated.
YAHOO.example.container.simpledialog1.show();
Hope this will help. :))

grails ui dialog

I am trying to do something which I would've thought was very simple, but it's causing me a huge headache. I am using Grails ui plugin to get a dialog box. I have a number of instances - some where dialog boxes need to appear when a button is clicked. This I have got working. But I also need to have some that appear when the page is loaded... for information / warning purposes. But I'm struggling with this.. What should I put as the trigger? I don't want the user to have to click anything before the dialog appears.
Also - has anyone successfully managed to change the style of the gui:dialog ? Mine was originally appearing as text with an invisible background before I added the class=yui-skin-sam to the main.gsp body, but that's had to replace the existing style class I already had on the body! how frustrating !!
Had the exact same problem... got it working by adding "visible=show" to the dialog's attributes. Example:
<gui:dialog title="Modal Dialog" modal="true" visible="show">
This message will appear in a modal dialog when the page loads.
</gui:dialog>

CKeditor 3.0 - How to know which toolbar button is clicked

I want to update few variables when any of the toolbar button (like bold, italic etc) is clicked. I'm unable to trap 'click' event on any of these buttons. Could somebody give me an example when clicking on 'bold' button would also pop up an alert box?
How can I trap 'paste' event?
I've googled a lot and searched ckeditor forum but couldn't find any solution. Any pointer would be really helpful.
Thanks.
I found out how to catch the paste event:
editor.on('paste', your_cb_fn);
However this doesn't seem to work for the button actions:
// does nothing
editor.on('Bold', your_cb_fn);
editor.on('bold', your_cb_fn);
The solution may be to edit the plugins in _source/plugins to create triggers, though that is not ideal.

Resources