Unable to click on button in pycharm - python-2.7

I have written the code as below but am unable to click on the search button.
I have used xpath and id ,not sure what is the error:
Search Button
Wait Until Page Contains Element xpath=.//[#id='gwt-uid-117']
Click Button xpath=.//[#id='gwt-uid-117']

Remove dot(.) and try this.
browser.find_element_by_xpath("//[#id='gwt-uid-117']").click()
or
Remove dot(.) and one slash(/) and try.
browser.find_element_by_xpath("/[#id='gwt-uid-117']").click()

Related

Qt: how can I make hyperlink in qpushbutton?

hi I'm trying to make hyperlink in a QPushbutton.
I searched for information that mights help and I found this:
Qt - add a hyperlink to a dialog
this told me how can I use hyperlink at a dialog(or mainwindow.)
However, what I want to is to use hyperlink in the QMessagebox when appears after clicking QPushbutton.
I searched that if I can use qlabel in qmessagebox but I couldn't find any information..
How can I do this?
(Any other way I can apply to make hyperlink by clicking a second button is fine. What I'm trying to do is 1st. click a button and my program will get an url information. 2nd. clicking a second button and it will activate my url)
If all you want is clicking a second button and it will activate my url then you can use QDesktopServices::openUrl() to open a URL. It automatically uses the application the user has configured, i.e. the browser or mail programm depending on the type of URL you give it.

MFC - WebBrowser control: Ctrl-F does not search?

I use webbrowser control to embed a browser in the app (source: https://www.codeproject.com/Articles/3919/Using-the-WebBrowser-control-simplified). When I load web page from URL and type Ctrl-F, the dialog pops up correctly and search works well. But if I load html as string, the search does not work. Whatever string I enter it always reports not found. What could be the issue and how to fix?
As per my understanding of your question,
When you click Ctrl+F then Find And Replace window dialog will open. There's a Find Options, Click on (+) symbol in Find options, then it'll expand then you will 4 checkboxes like Match case,Match whole word, etc. Unticked both checkboxes, after that you will find any string in your code.
Thanks
Please like my answer if your problem resolve.

How to focus on input after power-select-multiple is rendered?

I want to be able to search right after the webpage is rendered, instead of click on the search box then start typing.
However when I trying to mimic focusInput in original source code, it doesn't work.
It could be reproduced by visit
https://ember-power-select.com/docs/multiple-selection
and run document.querySelector('.ember-power-select-trigger-multiple-input').focus() which is focus on an input tag.
I expected to see something like this
, but actually nothing happened.
I also tried to .click() on all parent html elements of that input, but nothing happened
Any help?
I would suggest a tabindex to you. When you set the tabindex to 1 the search field will be the first to focus.
As an alternative you can try to achive this with an application instance initializer. In it you can now select the proper element and set the focus on it.

Imacros for facebook like

Just started to learn Imacros, recorder macros for Facebook to like page, but when i play macros it gives me this kind of error
RuntimeError: element BUTTON specified by
TYPE:submit&&ID:u_0_1c&&DATA-OWNERID:u_0_1b&&DATA-PROFILEID:106053553060414&&CLASS:_42ft_4jy0PageLikeButton_4jy4_517h_9c6&&VALUE:1
was not found, line 6 (Error code: -921)
You problem is,
"submit&&ID:u_0_1c&&DATA-OWNERID:u_0_1b&&DATA-PROFILEID:106053553060414&&CLASS:_42ft_4jy0PageLikeButton_4jy4_517h_9c6&&VALUE:1 "
points to a spesific a specific button, I assume you want to click any like button from whatever page you are on you should choose a more general selector. On the record in imacros you can choose multiple methods of recording choose a different one.

Making a clickable Phone hyperlink in a Sharepoint contactlist

I would like to make a <a href:"TT:0123456789?Dial"> link in a Sharepoint foundation 2010 list. If I insert it in the column as a hyperlink/single item/rich text etc and hover on it, it respons like a link, but i cannot call with my Polycom (computer connected) VOIP phone. It will only click on the complete line.
I would really like to use the SP contactlist. What would be the solution to insert a clickable dial link?
Your solution would be to create a custom field type for this. Crete a column type that, for example, displays a phone icon with your link on it. When you click your icon it will call instead of just mark the entire row. Read more about it here.