Input text into multiple alert text fields before action [duplicate] - selenium

This question already has answers here:
Selenium - Basic Authentication via url
(6 answers)
Unable to handle Microsoft login authentication popup in headless chrome[Selenium using java]
(1 answer)
How to manage Basic Authentication login with selenium c#?
(2 answers)
Python Windows Authentication username and password is not working
(2 answers)
Closed 1 year ago.
I need to input text into the two fields in an alert window like this one as an example:
I've looked at the doc for keyword Input Text Into Alert, but it doesn't seem to consider multiple text fields and actually I can't even get it to accept one text (alert detection goes timeout).
How is this achievable through RF/SeleniumLibrary?

I found this similar question:
Robot framework handle an authentication popup
I don't know if anything has changed since then, but the accepted answer solves the problem manipulating the URL, even if without using RF+SeleniumLibrary (which I would have preferred).

Related

How can I handle Geo Location popup in browser using karate? [duplicate]

This question already has answers here:
Handling Basic Authentication in Karate UI scenario
(2 answers)
Closed 1 year ago.
I need to allow the geo location during my karate web automation test.
I was going through this documentation https://github.com/intuit/karate/tree/master/karate-core
It has information on handling dialog boxes and popup but they don't seem to be working for the geo location pop up
Thanks to the comment above, looks like for Chrome you can use the addOptions to pass disable-geolocation:
* configure driver = { type: 'chrome', addOptions: [`disable-geolocation`] }
I guess it would be similar for other browsers. If needed please consider submitting a PR to the project.
Also note that we are working on Karate Robot that may be able to solve this in the future.

Passing data between scenarioes in karate [duplicate]

This question already has an answer here:
Karate API Testing - Reusing variables in different scenarios in the same feature file
(1 answer)
Closed 1 year ago.
I have a requirement to pass the response of first web services to next service. We maintain one scenario for each web services. Some of the tags in first services needs to be passed to next web services within the feature file itself. Please help.
Thanks,
Thiyagu
I think you have fundamentally misunderstood the way a Scenario works. Each Scenario is supposed to be independent. You can't have one Scenario update a variable and then expect that other ones can see the updated value. Please combine your 'flows' into one Scenario. Or if some 'setup' steps are common, use a Background section.
Keep in mind that you should be able to comment-out a Scenario or skip some via tags without impacting any others.

Capture error message in Web Application using QTP

I wanna capture the error message from the web based application during the run-time of QTP if server couldn't able to process the request which was hardcoded.
Example: If i'm trying run for sign-up page were i hardcoded all the fields but in the website they asking for minimum of 8 character for the field password but i hardcoded only 6 character.
I'm facing an error while running QTP and that web application shows additional "Pop-up" page. I wanna capture that message in that pop-up window and need to store string for future purpose.
Pls help me
You can typically use an Output Value to capture strings from elements in the application. How to do this exactly depends on the way your application displays the error message, you will have to give some more details if you want a more specific answer.
Use the QTP Recovery Scenario feature and setup trigger for a popup having a specific window title.

Send Keys to Different Window [duplicate]

This question already has answers here:
Simple Application for sending Keystroke in VB.NET
(2 answers)
Closed 9 years ago.
I want to send keys to another window followed by the enter key.
I have tried researching on google and have found no luck. Thanks for your help.
SendKeys(...) only sends to the active window, so you can not use it with the Enter key.
You could try P/Invoking PostMessage(...) with WM_KEYDOWN and WM_KEYUP.

how can i test whether my server supports range requests? [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How can I find out whether a server supports the Range header?
I want to make a jPlayer media player but it says that the server must enable Range requests.
It says that this is easy to check for by seeing if your server's resonse includes the Accept-Ranges in its header - but I don't know how to do this 'easy' thing.
I think it is the same question as How can I find out whether a server supports the Range header? but I need a step by step idiot guide to how to carry out the test. I couldn't work it out from that answer. Can anyone help? I guess I need to upload a php page to my server with some code on it?
Thank you.
OK well apparently this is how you can do it (thanks to Mark Panaghiston at JPlayer for this)..
Navigate to the url address of a video (mp4 in my case) on the server in question in Chrome/Firefox.
Open up the developer tools (in Chrome, shortcut CTRL-SHIFT-i or F12)
Switch to the network tab of the developer tools
Select the video/file in question
Then click for the Headers tab for information
Look to see if you have a Header Response for Accept Ranges: Bytes
If this Accept Ranges has a value like bytes, then it means range requests are accepted.