Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
abigna
Posts : 5
Join date : 2012-11-02

Execution hangs after clicking on Element Empty Execution hangs after clicking on Element

Tue Nov 06, 2012 8:49 pm
I have a file upload functionality. thought of using auto-it and developed the script
I have used the below script to click on choose button

driver.findElement(By.cssSelector("span.ui-button-text:contains("Choose")).click()
selenium.click("css=span.ui-button-text:contains("Choose"));

The driver.findElement is not bringing up the window where as selenium.click() brings the popup, but hangs in this step, control is not going to next step in selenium RC.

The execution got hang, there is no error message and execution is also not stopped completely.

Someone please let me know whether this can be handled in any other way. I need to submit a feasibility analysis for selenium and Iam stuck here.
avatar
tarun3kumar
Master
Master
Posts : 186
Join date : 2012-02-14
http://seleniumtests.com

Execution hangs after clicking on Element Empty Re: Execution hangs after clicking on Element

Wed Nov 07, 2012 11:37 am
If you are using Selenium 2 then you can use sendKeys() API to send file path to upload text box. You don't need to click choose button in doing so.
avatar
abigna
Posts : 5
Join date : 2012-11-02

Execution hangs after clicking on Element Empty Re: Execution hangs after clicking on Element

Wed Nov 07, 2012 12:52 pm
There is no text box to enter file name.
We have choose button and a non-editable box displayed in the bottom.
Once we select the file the file details and whether it is valid or not will be displayed in the box
avatar
abigna
Posts : 5
Join date : 2012-11-02

Execution hangs after clicking on Element Empty Re: Execution hangs after clicking on Element

Wed Nov 07, 2012 1:33 pm
By removing wait time on window in autoit script and placing the autoit script before button clicking, solved the issue
avatar
ravinderreddy
Posts : 6
Join date : 2012-11-10
Age : 37
Location : Hyderabad/Mumbai

Execution hangs after clicking on Element Empty I think as per your code U forgot to add double quote " at the end

Sat Nov 10, 2012 1:59 am
driver.findElement(By.cssSelector("span.ui-button-text:contains("Choose")).click()
selenium.click("css=span.ui-button-text:contains("Choose"));

Added double quote at the end
driver.findElement(By.cssSelector("span.ui-button-text:contains("Choose")").click()
selenium.click("css=span.ui-button-text:contains("Choose")");

if still it gives error then use

driver.findElement(By.cssSelector("span.ui-button-text:contains('Choose')").click()
selenium.click("css=span.ui-button-text:contains('Choose')");
Sponsored content

Execution hangs after clicking on Element Empty Re: Execution hangs after clicking on Element

Back to top
Permissions in this forum:
You cannot reply to topics in this forum