Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» FlexMonkium Download Not available under Gorillalogic site
Thu Dec 08, 2016 5:40 pm by bhanu.praveen

» Selenium Script issue
Tue Dec 06, 2016 9:48 pm by njain213

» Difference between QTP, Selenium and Silk test
Tue Dec 06, 2016 7:58 pm by jessicacyrus1

» Where does selenium script pick browser from
Tue Dec 06, 2016 1:52 pm by janbaskt

» Safari throws an HTTP ERROR: 404
Tue Dec 06, 2016 1:51 pm by janbaskt

» Access Denied Error in Selenium RC
Tue Dec 06, 2016 1:51 pm by janbaskt

» Automating Flex application through selenium webdriver
Fri Dec 02, 2016 2:06 pm by abhinay.krs

» Starting with Selenium, what is Selenium?
Mon Nov 28, 2016 4:00 pm by Foma

» Getting started with Selenium
Mon Nov 28, 2016 3:23 pm by Rebbelx

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

File type validation

View previous topic View next topic Go down

File type validation

Post by Archana on Wed Aug 26, 2009 9:28 pm

Hi,
I have set “signed.applets.codebase_principal_support” set to the value “true” in my Mozilla.

In my selenium IDE, the below testcase (HTML format) is running fine.
type | trophy_image | C:\Documents and Settings\Administrator\Desktop\1.txt
click | submit
waitForAlert | Invalid Image file

But, Equivalent PHP-sel RC testcase is giving exception when I run in iexplore (In mozilla, its fine)

$this->type("trophy_image", "C:\\Documents and Settings\\Administrator\\Desktop\\1.txt");
$this->click("submit");
for ($second = 0; ; $second++) {
if ($second >= 60) $this->fail("timeout");
try {
if ("Invalid image file"== $this->getAlert()) break;
} catch (Exception $e) {}
sleep(1);
}

is giving timeout.

What's the problem here? I think as it is security issue, IE is not allowing to type in to text field. How to solve this issue?

Archana
Regular Participant
Regular Participant

Posts : 33
Join date : 2009-08-21

Back to top Go down

Re: File type validation

Post by Archana on Mon Aug 31, 2009 8:03 pm

Pls do reply any one! Thanks in advance.

Archana
Regular Participant
Regular Participant

Posts : 33
Join date : 2009-08-21

Back to top Go down

Re: File type validation

Post by Archana on Fri Sep 11, 2009 7:02 pm

Hi, Any ideas to solve my problem? Sad

Archana
Regular Participant
Regular Participant

Posts : 33
Join date : 2009-08-21

Back to top Go down

Re: File type validation

Post by nellorekrishnakumar on Sat Sep 12, 2009 12:49 pm

Hi Archana,

Selenium performance in IE is slow when compared to firefox , try to put wait command and try to execute ur script in selenium.

Thanks,
Nellore Krishna Kumar

nellorekrishnakumar
Active particpant
Active particpant

Posts : 19
Join date : 2009-08-14
Age : 31
Location : HYDERABAD

Back to top Go down

Re: File type validation

Post by mugenhere on Mon Sep 14, 2009 2:01 am

Did you try printing $this->getAlert()? Try that inside the loop to see what is being compared with what.
The value you are comparing it with might differ slightly or maybe the value is not being fetched from the page.

Some code suggestions: 1)It seems you need a do-while/while loop
2) ($this->getAlert() == "Invalid image file") is more readable than (Invalid image file"== $this->getAlert())

mugenhere

Posts : 9
Join date : 2009-09-08

Back to top Go down

Re: File type validation

Post by Sponsored content Today at 8:10 am


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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