thank you for the idea, i got the value from the source string to assert with the out put in other web app..
@bellamadina33843 ай бұрын
Can you do this without driver.get pr window.open. Because it usually takes URL only format like etc. but usually in applications copy button copies some text or numbers which can be used to paste in other fields. So here once you copied the content, then how can I paste it in new window and verify the pasted text matches with expected text. I tried to open new tab and opened Google search page and tried to paste in search box. And then from that search box retrieved the text box content. Only issue I am facing is the ctrl+v paste is not working. I tried with robot class, actions class to simulate ctrl+v but none worked. Could you please suggest the solution
@letcode3 ай бұрын
Have you tried the toolkit ? 9:00
@bellamadina33843 ай бұрын
@@letcode issue resolved. Using toolkit I grabbed the clipboard value and then entered that value to textbox using sendkeys, and then compared the textbox value with the expected string. This solved my purpose. Thanks a lot!
@justin-George2 жыл бұрын
Anyway to pick any list using ctrl+f and pass string?
@letcode2 жыл бұрын
Not sure, but i guess using press function we can input Ctrl f, then based on the highlights css probably we can find the list of elements
@justin-George2 жыл бұрын
@@letcode ctrl+f using Robot worked but unable pass value for search...which doesn't have web elements as well
@letcode2 жыл бұрын
@@justin-George yeah that find is browser feature, not the Dom.
@justin-George2 жыл бұрын
@@letcode any hope of browser ctrl+f to pass value
@letcode2 жыл бұрын
@@justin-George not that I'm aware of 😔
@SasTest-e4w Жыл бұрын
This code returns the clipboard value from the current system. But I run my tests in browserstack, do you know how to handle the remote systems ?
@letcode Жыл бұрын
Not sure about it.
@Od3o_ela_sabil_rabek2 жыл бұрын
Hi Sir, how did you copy the link first to the clipboard, I watched the video but I can't get it?
@letcode2 жыл бұрын
Once you click on that button, it will be automatically copied to the clipboard
@rohanmithal5665 Жыл бұрын
The Above code didn't work inside Docker container
@letcode Жыл бұрын
Oh is it, I haven't checked with docker.
@anitakalyanasundaram79872 жыл бұрын
Hi Sir, I want to handle the clipboard permission popup in selenium c# which has to be set as "Allow" for edit the grid in the application. please provide that snippet for selenium c#
@letcode2 жыл бұрын
Hi, m not sure about C#
@jalaljerrytech33383 жыл бұрын
Bro how to get text which is copied in clipboard. I need specific text which is displayed in clipboard or notepad
@letcode3 жыл бұрын
That is what I have explained in this video bro 😀
@purnimabaskar89733 жыл бұрын
Hi, am trying to paste the attribute value of one window to another new window but any of the input method is not working, is there any solution
@letcode3 жыл бұрын
Did u switched to the window?
@purnimabaskar89733 жыл бұрын
Yes I did and even the input box highlighted but the value is not getting pasted
@letcode3 жыл бұрын
Sample code wil help me to understand better.
@deepakpradhan79683 жыл бұрын
How to paste the valu on different browser and open the copy url on different browser kindly help I have a project like this scenario. Kindly help 👏👏👏
@letcode3 жыл бұрын
You'll get the clipboard value in string, you can use it anywhere.
@Mr.SmileGarg4 жыл бұрын
Sir, My scenario is : copy the content from the web application and paste it in the notepad. Is it possible with this approach??
@letcode4 жыл бұрын
You cannot directly paste in notepad, but you can use the file class to create a file with text and write the value in the file.
@Mr.SmileGarg4 жыл бұрын
@@letcode I have to use any third party library for this or I can directly write it into notepad??
@letcode4 жыл бұрын
@@Mr.SmileGarg You can directly write using File class.
@Mr.SmileGarg4 жыл бұрын
Thank you Sir, Can you please share the similar code paste from webpage to clipboard than notepad. It would be very helpful. 🙏
@naani554 жыл бұрын
bhai .. plz do make videos on selenium interview questions
@piotrk293 жыл бұрын
its not working on headless mode
@letcode3 жыл бұрын
🥺 any issues?
@piotrk293 жыл бұрын
@@letcode something like this (java.awt.HeadlessException) values: [java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it.]