Jump to content
Sign in to follow this  
Gokul

Browser opens up when a value # is read from excel

Recommended Posts

Gokul

Hi,

I came across a situation, whenever # value is read from excel, browser window opens up automatically. Is there an issue like this.

Edited by Gokul

Share this post


Link to post
Share on other sites
Gokul

give reproducer code.

The code is just with some controlclicks in it, to fetch data from excel and enter it into the text boxes in application. I just wanted to know, if there is any chance of automatically poping up windows. Controlclicks to all fields are only present in my code. And this does not happen always when # value is read. Only in some cases it happens.

Edited by Gokul

Share this post


Link to post
Share on other sites
water

It is impossible to help you without seeing your code or a stripped down reproducer script that shows the problem for everyone.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
Gokul

It is impossible to help you without seeing your code or a stripped down reproducer script that shows the problem for everyone.

#include <excel.au3>
#include <array.au3>

$file ='EXCEL PATH'

$oExcel = _ExcelBookOpen($file, 0)

_ExcelSheetActivate($oExcel, "Data")

$aArray = _ExcelReadSheetToArray($oExcel, 1)

_ArrayDisplay($aArray, "Array using Default Parameters")

Run('application path')

_WinWaitActivate(" Login","")

ControlClick(" Login to application", "", "NAME:Username")

Send("user1")

Send("{TAB}")

Sned("pass1")

ControlClick(" Login to application", "", "[NAME:Submit]")

$idno = $aArray[$i][1]
$name1 = $aArray[$i][2]
$name2 = $aArray[$i][3]
$name3 = $aArray[$i][4]
$email1 = $aArray[$i][5]
$email2 = $aArray[$i][6]

_WinWaitActivate("Emp details","")
MsgBox("Ok","Confirmation","Click Ok to begin...")

ControlClick("Emp details", "", "[NAME:firstname]")
Send($name1)
ControlClick("Emp details", "", "[NAME:middlename]")
Send($name2)
ControlClick("Emp details", "", "[NAME:lastname]")
Send($name3)
ControlClick("Emp details", "", "[NAME:primaryemail]")
Send($email1)
ControlClick("Emp details", "", "[NAME:addressline1]")
Send($address1)
ControlClick("Emp details", "", "[NAME:phone]")
Send($phone1)

MsgBox("Ok","Confirmation","Alert")
_ExcelBookClose($oExcel, 0, 0)
$oExcel = '';
Next

I have the address field in excel with # values. When the address field in the application is reached while datas are filled from excel, browser pops up.

Share this post


Link to post
Share on other sites
water

Am I wrong or do you already have a thread for the same issue?

>Sometimes data from excel are not populated on the application


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
Gokul

What page does the browser navigate to?

Chrome browser with Google search page.

Share this post


Link to post
Share on other sites
Gokul

Does it occur after this line?

MsgBox("Ok","Confirmation","Click Ok to begin...")

When it reaches the address field. The difference in data of this field from other fields is that it will have # in it.

Edited by Gokul

Share this post


Link to post
Share on other sites
Gokul

So what is this...

Send($address1)

Were does $address1 come from and what is it's content?

The values to fields are fetched from excel and it contains values like 'address # address line 1, address line 2'

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×