Testing dynamically generated url

View: New views
2 Messages — Rating Filter:   Alert me  

The following portion:
(aHR0cDovL2xvY2FsaG9zdC9NYWdlbnRvSGlsYWlyZURlbW9WMi9tYWdlbnRvZGVtb0hpbGFpcmVWMi9pbmRleC5waHAvY2F0ZWdvcmllMS5odG1sP19fX1NJRD1V /product/1/')"])
is dynamically generated and it's can change on other magento cms.
Please help me.

Testing dynamically generated url

by masudmalo101 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Cliking on dynamically generated url. Hi, all, I am very new in weAp testing, i'm trying to create test for some webap, build in magento using selenium ide. The problem i have is how to clik on dynamically genrated url. My test looks like this:Hi, all, I am very new in weAp testing, i'm trying to create test for some webap, build in magento using selenium ide. The problem i have is how to clik on dynamically genrated url. My test looks like this:
clickAndWait //button[@onclick="setLocation('http://localhost/MagentoDemoV2/magentodemoV2/index.php/checkout/cart/add/uenc/aHR0cD ovL2xvY2FsaG9zdC9NYWdlbnRvSGlsYWlyZURlbW9WMi9tYWdlbnRvZGVtb0hpbGFpcmVWMi9pbmRleC5waHAvY2F0ZWdvcmllMS5odG1sP19fX1NJRD1V/produc t/1/')"]

Re: Testing dynamically generated url

by kjaladi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

the link src may be different, but try using it's id (or) xpath as part of click command. that may work..

thanks.
masudmalo101 wrote:
Cliking on dynamically generated url.

Hi, all, I am very new in weAp testing, i'm trying to create test for some webap, build in magento using selenium ide.
The problem i have is how to clik on dynamically genrated url.
 My test looks like this:
Hi, all, I am very new in weAp testing, i'm trying to create test for some webap, build in magento using selenium ide. The problem i have is how to clik on dynamically genrated url.  My test looks like this:</br>

<tr>
        <td>clickAndWait</td>
       

<td>//button[@onclick="setLocation('http://localhost/MagentoDemoV2/magentodemoV2/index.php/checkout/cart/add/uenc/aHR0cD

ovL2xvY2FsaG9zdC9NYWdlbnRvSGlsYWlyZURlbW9WMi9tYWdlbnRvZGVtb0hpbGFpcmVWMi9pbmRleC5waHAvY2F0ZWdvcmllMS5odG1sP19fX1NJRD1V/produc

t/1/')"]</td>
        <td></td>
</tr></br>
 
The following portion:</br>

(aHR0cDovL2xvY2FsaG9zdC9NYWdlbnRvSGlsYWlyZURlbW9WMi9tYWdlbnRvZGVtb0hpbGFpcmVWMi9pbmRleC5waHAvY2F0ZWdvcmllMS5odG1sP19fX1NJRD1V

/product/1/')"])</br> is dynamically generated and it's can change on other magento cms.
</br>
Please help me.