Reputation: 41
This is my first time to ask a question! (excited!!!)
But i don't have enough reputations to post a image...
i'm trying to use selenium to automatically upload the image and get the result on how-old.net
And after uploading the image, there will be a button "View Source"
So after i clicked "View Source", the JSON part would come out. But i fail to copy that part of element. And although i recorded the behavior of click "View Source", that JSON part doesn't show up when i run the recording in selenium ide. Anyone knows why? THX!
Upvotes: 1
Views: 428
Reputation: 24551
You cannot copy text to the clipboard using Selenium IDE. However, if you want to use the JSON in the textarea later in the script, you can use storeText
to save it in a variable:
The command is storeText(locator, variableName)
. You can use the variable "the_source" later as ${the_source}
As for your other question: with typeAndWait
it works for me, you probably forgot the AndWait
part that waits for the triggered request to finish.
Upvotes: 2