incorrect url in selenium test

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

incorrect url in selenium test

by zelenka :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi.

I wonder if I hit a bug. My test clickAndWaits a link and times out. When I rightclick on the link on the webpage, selenium offers an option to open the link, but it states a wrong (truncated) URL. It says

open /portal/ui/services/ethernetE2E/create?execution=e2s7

but the actual URL for the link is

/portal/ui/services/ethernetE2E/create?execution=e2s7&_eventId=showAll

Does anyone know what could be done to remedy this?

Thanks so much!
z

Re: incorrect url in selenium test

by kjaladi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Could you copy paste your complete URL in IDE and give a try? (or) give me your complete URL...Otherwise - I have tried this long url test on msn (just for testing), it is all working for me -

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="http://www.msn.com/" />
<title>New Test</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">New Test</td></tr>
</thead><tbody>
<tr>
        <td>open</td>
        <td>/</td>
        <td></td>
</tr>
<tr>
        <td>click</td>
        <td>link=exact:Schwarzenegger & troops?</td>
        <td></td>
</tr>
<tr>
        <td>pause</td>
        <td>2000</td>
        <td></td>
</tr>
<tr>
        <td>clickAndWait</td>
        <td>//div[@id='results_container']/div[2]/div/div/h2/div/a/strong</td>
        <td></td>
</tr>

</tbody></table>
</body>
</html>