Search issue.

gagan235

New Member
i am entering text in search box via write stage but on click search icon nothing is happening. Can anyone rectify this?
 

Jitendra

New Member
Hi Gagan,

Can you please paste screenshot with text written by BOT in the text box? Also when you click on search icon - does that result in any error? any message?

My guess - is sometimes applications do not register the "Write" action and even though you see text in the search box, it is not recognizable; could I request you to try using Global Send Keys to sent the same search criteria and see what happens?
 

Sachin_Kharmale

Active Member
i am entering text in search box via write stage but on click search icon nothing is happening. Can anyone rectify this?
Spy Element with Win 32 Mode and try to send value with the help of Global Send Keys instead of write stage.
If Global send keys will not works then try with
Global Send Key Events.
 

gsaideepak

New Member
Based on the question I am assuming that the issue here is that search box in question is not retaining the information that you have entered using the write stage and as a results you are not seeing the results for the specified search criteria.
If the above assumption is true then you do the following:
1. copy and paste the question in the search box and click search icon see if the text entered is retained and results are shown.
2. If not manually type the text and see if this is retained.
3. if the 2 point is true then, you can use try the following options
i. Send a tab key after writing the data and then click on search icon.
ii. use send keys with some interval(0.1) and then click on search icon.

Let me know how it goest
 

gil.silva

Active Member
Hello gagan235,


A screenshot of the field would be very useful.
I assume that we are speaking in a search bar on some website, right? In a website the HTML in the websites has multiple layers in the same field, meaning that when you spy, you can be spying the 'hint' textbox, for example.
A good way to solve that, it's using Global Send Keys, as Sachin_Kharmal recommended.

SOLUTION:
To achieve that you need to spy the website window in Win32 and the search box in Browser/HTML mode or other.
Then create a Navigate Stage with the following 3 actions:
Element Action
Window Activate Application
Search Box Focus
Root Element Global Send Keys (Input - Text - [text to insert])
(first element of the tree)

It should work just fine. bit it really depends on the website/application structure.
 

gagan235

New Member
Hello gagan235,


A screenshot of the field would be very useful.
I assume that we are speaking in a search bar on some website, right? In a website the HTML in the websites has multiple layers in the same field, meaning that when you spy, you can be spying the 'hint' textbox, for example.
A good way to solve that, it's using Global Send Keys, as Sachin_Kharmal recommended.

SOLUTION:
To achieve that you need to spy the website window in Win32 and the search box in Browser/HTML mode or other.
Then create a Navigate Stage with the following 3 actions:
Element Action
Window Activate Application
Search Box Focus
Root Element Global Send Keys (Input - Text - [text to insert])
(first element of the tree)

It should work just fine. bit it really depends on the website/application structure.
Actually i am giving the input in Flipkart search box.

I am using HTML to spy the element (search textbox).
After that input is getting inserted successfully and when i click on search icon next to the textbox nothing is happening.

Some suggested to use global send key events but using global send key events it is scrolling the web page.

Attached are the screenshots for reference.

In my process (BP Screenshot attached) in highlighted Write stage i am inserting input from excel sheet to textbox via HTML spy and in Click i am clicking the search icon next to textbox via HTML spy.

I searched the search text box with HTML element
 

Attachments

  • Flipkart.PNG
    504.9 KB · Views: 26
  • BP.PNG
    55.5 KB · Views: 23

gil.silva

Active Member
Please see the screenshot in attachment.

You need 3 elements:
- Window - Win32 to Activate Application
- Input box - UIA to Focus
- Root tree element to use Global Send Keys.

Sorry for the 'extra' elements, but I just used an old object to test.

Edit: A more reliable and faster way is to Navigate to URL.
How? Use a Navigate stage.
Element: root (first element in the tree)
Action: Navigate | Inputs: URL: "https://www.flipkart.com/search?q=" & [text to search] (your data item)

Let me know if you need more assistance.
 

Attachments

  • Flipkart.png
    280.9 KB · Views: 17

gagan235

New Member
Aweso
Please see the screenshot in attachment.

You need 3 elements:
- Window - Win32 to Activate Application
- Input box - UIA to Focus
- Root tree element to use Global Send Keys.

Sorry for the 'extra' elements, but I just used an old object to test.

Edit: A more reliable and faster way is to Navigate to URL.
How? Use a Navigate stage.
Element: root (first element in the tree)
Action: Navigate | Inputs: URL: "https://www.flipkart.com/search?q=" & [text to search] (your data item)

Let me know if you need more assistance.
Awsome it's working thanks a lot for the help.

Also can you tell how to remove text from the textfield.
 

gil.silva

Active Member
To remove the text, you just need to write an empty data item.
But, everything you write in the search box, it should overwrite the current text.
 

gagan235

New Member
To remove the text, you just need to write an empty data item.
But, everything you write in the search box, it should overwrite the current text.

Thanks for the option. Really appreciate.

i also used below option
i spied the back button using UIA and clicked on that and that was also working fine.

what is the send key event for backspace or move to previous page?
 

gil.silva

Active Member
Good.
You can use one of the following syntax:
{BACKSPACE}, {BS}, or {BKSP}

Also, since you have BP license, I guess you have access to the BP portal, there you can find a very useful guide called Guide to Send Keys and Send Key Events, with all the codes for Send Keys and Send Keys Events.
 

gagan235

New Member
Ok thanks.

So now i am done with my Windows application Automation.

Every time i need to open BP and run the process.

Is there any other way that without opening BP i can run that from outside just like exe?
 

gil.silva

Active Member
Hello,

You can run your process from the Control Room, after you publish it.
But I recommend you to read the Blue Prism guides to know more about this and other topics.
 

MadhuG001

Member
Please see the screenshot in attachment.

You need 3 elements:
- Window - Win32 to Activate Application
- Input box - UIA to Focus
- Root tree element to use Global Send Keys.

Sorry for the 'extra' elements, but I just used an old object to test.

Edit: A more reliable and faster way is to Navigate to URL.
How? Use a Navigate stage.
Element: root (first element in the tree)
Action: Navigate | Inputs: URL: "https://www.flipkart.com/search?q=" & [text to search] (your data item)

Let me know if you need more assistance.
Hello Silva,

I am trying to login to Flipkart.com
But once I select the Email ID/Mobile Number Page & enter the mobile number. It's not getting entered properly, it's getting override.
Please check & advise, how to proceed.
Please find the attachment
 

Attachments

  • FK Login Page.PNG
    144.2 KB · Views: 10
  • BP Object Studio.PNG
    24.8 KB · Views: 4
  • Verify Email ID.PNG
    21.5 KB · Views: 3
  • Click Email ID section.PNG
    22.9 KB · Views: 2
  • Enter Email ID.PNG
    27 KB · Views: 1

gil.silva

Active Member
Hello MadhuG001,

Yes, that's a common issue when interacting with HTML elements with multiple layers.
The proper approach is to use a Navigate stage with 3 actions:
Window - Win32 (spy the full IE window with Win32 mode) | Activate Application
Enter Email ID | Focus
Flipkart Shopping (root element) | Global Send Keys (input: [Cell Number])
 

MadhuG001

Member
Hello MadhuG001,

Yes, that's a common issue when interacting with HTML elements with multiple layers.
The proper approach is to use a Navigate stage with 3 actions:
Window - Win32 (spy the full IE window with Win32 mode) | Activate Application
Enter Email ID | Focus
Flipkart Shopping (root element) | Global Send Keys (input: [Cell Number])
Thanks for replying Silva.
Could you please explain a bit more how to enter the credentials
Thanks again
 

MadhuG001

Member
Thanks for replying Silva.
Could you please explain a bit more how to enter the credentials
Thanks again
Hello Silva,
I am able to login now, but facing issue while logging out, because the Flipkart Logout button comes once we hover the mouse over it.
Please advise, how to logout it.
Thank you
 

gil.silva

Active Member
Hello,

That shouldn't be a problem. Spy the Logout button and then try to use the action 'Click button' with a Navigate stage.
The button doesn't need to be visible to allow these kind of actions
 

MadhuG001

Member
Thanks for replying Silva.
But problem is that, when we keep the mouse cursor on User Name, a list of action appears including the Logout & once we remove the cursor, again the complete list of action disappears. Even if we click, it's not displaying the list.
Please find the attachment & advise.
 

Attachments

  • Flipkart Logout.PNG
    222.2 KB · Views: 6
Top